Problem 1
Let be an integer. Consider squares with side lengths , respectively. The squares are arranged in the plane with their sides parallel to the and axes. Suppose that no two squares touch, except possibly at their vertices. Show that it is possible to arrange these squares in a way such that every square touches exactly two other squares.
Step 1 of 3: Partition {1,...,n-4} with sum difference 1 or 2
Detailed analysis
Set aside the four largest squares of side lengths . From the remaining lengths , repeatedly peel off blocks of four consecutive integers from the top, placing into and into (contributing to the sum difference), until smallest numbers remain. Place in if (difference ); , if (difference ); , if (difference ); , if (difference ). Thus .