Combi Solving: APMO 2023 P1
(Dylan here.)
Today, I'll be solving a (pseudorandomly chosen) combinatorics problem. But instead of just explaining the solution, I will detail my messy thought process as I work through it in real time. After solving the problem, I will do a brief meta-commentary, and try to abstract the problem. Finally, for the more mathematically mature, I will talk about what possibly lies beyond it: various extensions and related areas.
Let's begin.
1 The Problem
(APMO 2023 P1) Let $n\geq 5$ be an integer. Consider $n$ squares with side lengths $1,2,\dots,n$ respectively. The squares are arranged in the plane with their sides parallel to the $x$ and $y$ 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 $2$ other squares.
1.1 First Thoughts
In no particular order:
- This is a construction problem.
- The orientation of the squares are fixed to be aligned; the conditions that (a) squares touch at corners and (b) squares have integer side lengths, imply that the squares should also be 'lattice-aligned', i.e. corners have integer coordinates.
- (Key Idea 1) The fact that every square touches exactly two others is a very strong condition. It screams a structure result from graph theory: that a $2$-regular graph decomposes into disjoint cycles. (To spell it out: squares are vertices, squares touching each other are edges.)
- The vertex-touching condition reminds me of the board game Blokus.
- Before even trying some constructions, I can anticipate some challenges: (a) getting the 'perimeter' of the cycles to agree; perhaps triangle-inequality/parity issues. (b) that there may not be enough 'space' to fit the squares in a cycle (perhaps area constraints that force squares to overlap). (c) It might be difficult to put large squares together with small squares.
1.2 Experimentation
- The helpful heuristic for constructing small cases was to place the large squares first, and on the sides; opposite side lengths differing by $1$ or $2$ could then be offset by a 'diagonal' square of side length $1$ or $2$ respectively.
- Each cycle needs at least $4$ squares; but actually, more! $5$ or $6$ is necessary, since square side lengths must be distinct.
- Size and parity seem to be easily avoidable challenges. But without worry of overlap of the squares, I can abstract the problem 'algebraically' as follows:
- I want to 'split' numbers $1,2,\dots,n$ into $4$ groups: 'left', 'up', 'right', 'down', corresponding to how their side lengths contribute to the perimeter of the cycle.
- Each number must appear in either one or two groups. If they appear in two groups, they must be 'adjacent' groups.
- The 'left' and 'right' groups must have equal total sum. The 'up' and 'down' groups must have equal total sum.
- Additional soft-rules: each group should have a number that only appears in that group; preferably, large numbers should be in only one group; etc.
- The two corners of a square that touch other squares can either be (a) along a side, or (b) along a diagonal. The freedom to choose between these two options seems important.
- Both one large cycle and many small disjoint cycles seem plausible for the general construction. However, the latter is conceptually simpler:
- (Key Idea 2) If I could get $k=8$ squares of consecutive lengths (i.e. $N+1,N+2,\dots,N+k$) to fit in a cycle, then the problem is resolved by induction, up to the base cases!
1.3 Pursuing the key ideas
1.4 The solution
- Set up the induction statement $n\mapsto n+6$.
- Draw constructions for $n=5,\dots,10$.
- Draw the construction of the cycle of squares with side lengths $N+1,\dots,N+6$, in particular noting that the diagonal squares do not overlap.
- The key idea is to induct from $n$ to $n+6$. $6$ squares of consecutive lengths can be positioned in a cycle. All that's left is to resolve the small cases.
- Have you tried small cases? What do you think the general construction looks like? (hint to Key Idea 1: connectivity structure.)
- Can you extend a construction of smaller $n$ to a construction of larger $n$? (hint to Key Idea 2: induction.)
2 The Meta-Commentary
2.1 General thoughts
2.2 Problem elements
- $n$ objects arranged in the plane – the main freedom of this problem.
- Sides parallel to the $x$ and $y$ axes – constraint on orientation.
- Squares – constraint on shape.
- Side lengths $1,\dots,n$ – constraint on length/size, maybe parity.
- No two squares touch, except possibly at their vertices – constraint on connectivity/distance/space.
- Every square touches exactly $2$ other squares – constraint on connectivity.
2.3 Loose threads, dead ends, and blind spots
3 Extensions
3.1 First tweaks
- Adding an optimisation dimension to the problem: can I try to maximise the number of disjoint cycles in my construction?
- Adding an enumerative dimension to the problem: how many constructions are there? Is it exponential in $n$, or worse?
- Adding an adversarial dimension to the problem: what if two players were competing to place squares on a finite board (like Blokus)? Or trying to maximise the number of corner adjacencies?
- Adding a literal dimension to the problem: what if I replace squares with cubes?
- Changing the shape: what if I replace squares with equilateral triangles or regular hexagons? (These shapes can still be required to be aligned to an isometric grid.) How about rectangles? Circles?
- Changing the sizes: what if I replace $1,\dots,n$ with, say, perfect squares, cubes, or powers of $2$? Or a general 'dense' subset, e.g. any $n$ numbers among $1,\dots,2n$?
- Removing the alignment constraint: what if I no longer require squares to be axis-aligned? With the extra freedom, what extra constraints can I impose?
- Removing the spacing condition: what if squares can touch on edges as well, just not overlap?
- Changing the valency: what if I require squares to touch $3$ other squares?
- Changing the number: what if I have to arrange an infinite number of squares?
3.2 Forming questions
- (4+8) Can I arrange circles of radii $1,\dots,n$ such that every circle touches (i.e. is tangent to) exactly $3$ others? (leans into geometry)
- (8+9) Can I arrange squares of side lengths $1,2,\dots$ such that every square touches exactly $3$ others? (leans into just-do-it, perhaps)
- (1+7) What is the minimum-size square that I can fit $n$ non-overlapping squares of side length $1,\dots,n$ into? What if I require them to all be connected, and by corners? (leans into space constraints)
- (5) If the $n$ squares' side lengths are chosen among $1,\dots,2n-2$, can I still have a construction for sufficiently large $n$? (leans into additive combi; the $2n-2$ is to avoid parity problems).
- (negative space) The squares mark out a few bounded regions of the plane; is there a lower bound on the area of these regions? (leans into space constraints)
- Can I dissect a $2023\times 2023$ square into $n$ rectangles (for some $n$), such that every number from $1,\dots,2n$ appears exactly once as a width and exactly once as a length?
4 Conclusion
- There is intuition and motivation behind both the problem statement and the solution.
- It helps to name your ideas, for both internal clarity and also for communication.
- There is tremendous value in introspection: understanding your own thought process and why you are struggling with a problem, not just learning the solution.
Comments
Post a Comment