Version 1. Let n be a fixed positive integer, and let S be the set of points (x,y) on the Cartesian plane such that both coordinates x and y are nonnegative integers smaller than 2n (thus ∣S∣=4n2). Assume that F is a set consisting of n2 quadrilaterals such that all their vertices lie in S, and each point in S is a vertex of exactly one of the quadrilaterals in F. Determine the largest possible sum of areas of all n2 quadrilaterals in F.
Version 2. Let n be a fixed positive integer, and let S be the set of points (x,y) on the Cartesian plane such that both coordinates x and y are nonnegative integers smaller than 2n (thus ∣S∣=4n2). Assume that F is a set of polygons such that all vertices of polygons in F lie in S, and each point in S is a vertex of exactly one of the polygons in F. Determine the largest possible sum of areas of all polygons in F.
This one wants a proof. Work it on paper, read the official solution, then mark
yourself honestly — the ladder only means something if the record is true.
Official solution
Answer for both Versions: The largest possible sum of areas is Σ(n):=31n2(2n+1)(2n−1).
Common remarks. Throughout all solutions, the area of a polygon P will be denoted by [P]. We say that a polygon is legal if all its vertices belong to S. Let O=(n−21,n−21) be the centre of S. We say that a legal square is central if its centre is situated at O. Finally, say that a set F of polygons is acceptable if it satisfies the problem requirements, i.e. if all polygons in F are legal, and each point in S is a vertex of exactly one polygon in F. For an acceptable set F, we denote by Σ(F) the sum of areas of polygons in F.
Solution 1, for both Versions. Each point in S is a vertex of a unique central square. Thus the set G of central squares is acceptable. We will show that Σ(F)⩽Σ(G)=Σ(n)(1) thus establishing the answer. We will use the following key lemma.
Lemma 1. Let P=A1A2…Am be a polygon, and let O be an arbitrary point in the plane. Then [P]⩽21i=1∑mOAi2(2) moreover, if P is a square centred at O, then the inequality (2) turns into an equality.
Proof. Put An+1=A1. For each i=1,2,…,m, we have [OAiAi+1]⩽2OAi⋅OAi+1⩽4OAi2+OAi+12. Therefore, [P]⩽i=1∑m[OAiAi+1]⩽41i=1∑m(OAi2+OAi+12)=21i=1∑mOAi2 which proves (2). Finally, all the above inequalities turn into equalities when P is a square centred at O.
Back to the problem, consider an arbitrary acceptable set F. Applying Lemma 1 to each element in F and to each element in G (achieving equality in the latter case), we obtain Σ(F)⩽21A∈S∑OA2=Σ(G) which establishes the left inequality in (1).
It remains to compute Σ(G). We have Σ(G)=21A∈S∑OA2=21i=0∑2n−1j=0∑2n−1((n−21−i)2+(n−21−j)2)=81⋅4⋅2ni=0∑n−1(2n−2i−1)2=nj=0∑n−1(2j+1)2=n(j=1∑2nj2−j=1∑n(2j)2)=n(62n(2n+1)(4n+1)−4⋅6n(n+1)(2n+1))=3n2(2n+1)(2n−1)=Σ(n)
Solution 2, for Version 1. Let F be an accessible set of quadrilaterals. For every quadrilateral ABCD in F write [ABCD]=2AC⋅BDsinϕ⩽4AC2+BD2(3) where ϕ is the angle between AC and BD. Applying this estimate to all members in F we obtain Σ(F)⩽41i=1∑2n2AiBi2 where A1,A2,…,A2n2,B1,B2,…,B2n2 is some permutation of S. For brevity, denote f((Ai),(Bi)):=i=1∑2n2AiBi2 The rest of the solution is based on the following lemma.
Lemma 2. The maximal value of f((Ai),(Bi)) over all permutations of S equals 34n2(4n2−1) and is achieved when Ai is symmetric to Bi with respect to O, for every i=1,2,…,2n2.
Proof. Let Ai=(pi,qi) and Bi=(ri,si), for i=1,2,…,2n2. We have f((Ai),(Bi))=i=1∑2n2(pi−ri)2+i=1∑2n2(qi−si)2 it suffices to bound the first sum, the second is bounded similarly. This can be done, e.g., by means of the QM-AM inequality as follows: i=1∑2n2(pi−ri)2⩽4nj=0∑2n−1j2=i=1∑2n2(2pi2+2ri2−(pi+ri)2)=4nj=0∑2n−1j2−i=1∑2n2(pi+ri)2−2n21i=1∑2n2(pi+ri)2=4nj=0∑2n−1j2−2n21(2n⋅j=0∑2n−1j)2=4n⋅62n(2n−1)(4n−1)−2n2(2n−1)2=32n2(2n−1)(2n+1) All the estimates are sharp if pi+ri=2n−1 for all i. Thus, f((Ai),(Bi))⩽34n2(4n2−1) and the estimate is sharp when pi+ri=qi+si=2n−1 for all i, i.e. when Ai and Bi are symmetric with respect to O.