2013 USAMO · Question 3
Problem outline
Build a triangular lattice of two-sided tokens, with tokens in its successive rows and . Start with every black face visible. A move reverses every token on a chosen line in any of the three directions parallel to a side. For each reachable black-and-white board, count the fewest moves needed from the start. Find the largest of those minimum counts as a function of .
Show answer and methods 1 methods
Answer
Write , . The maximum is .
Method 1 Classify equivalent flip lists and balance each parity group
Write and index the tokens by triples of nonnegative integers with . Lines of the three directions have fixed , or . Repeated flips cancel and flips commute. Thus a move list is specified by three binary strings of length , marking the lines used an odd number of times. Its cost is the number of marked lines. For the answer is one; assume .
Two lists produce the same board if their difference modulo two changes nothing. Write that difference as . We need modulo two whenever . Compare the tokens and : every consecutive difference of equals . Permuting the coordinates shows that all three strings have one common difference . Consequently every null change is exactly , , , for arbitrary bits . Substitution checks the converse. There are eight such changes.
For a fixed move list, group its bits by direction and by even/odd index, making six groups. In group let be the number of zeros minus the number of ones. Under a null change the whole group is kept or complemented. Put or accordingly. The six signs have form , with the six distinct nonzero binary linear forms in some order. The minimum cost for our board is therefore , where is the maximum of over the eight choices of .
A nonconstant sign has mean zero: switching a bit with nonzero coefficient reverses the sign. Likewise any two different signs have mean product zero, since their product uses a nonzero form. Thus has mean zero and its mean conditional on or is respectively or . In particular for each group, and . Every value of has the same parity as because it is the excess of zeros over ones in positions.
We claim . For this follows from the mean; for use odd parity as well. For each group has odd size , so and even parity yields . For the even-index groups have size and the odd-index groups have size . If any , odd parity gives . Otherwise the even groups are balanced and the three odd groups have . Their forms are , since is even. They are independent: their sum gives , then the first two recover . Choose the three signs to make every contribution , giving . Hence every board costs at most .
For the matching lower bound, first consider side lengths , treating the empty board as cost zero. With side one, a white token costs one. With side two, all three white tokens require at least two flips, since one line has at most two tokens; flipping one two-token row and the remaining singleton attains it. With side three the nine move bits give distinct reachable boards by the null-change calculation. At most can be reached with at most two flips, so some reachable board needs at least three.
Take any list for such a side- board and copy its bits to indices of each direction on the side- board. In each direction the remaining lines have indices of each parity. Mark exactly of each parity. Any null change keeps or complements each group, so the added lines always contribute exactly moves. On the copied indices it restricts to a null change for the small board: the formula uses only modulo two, and . For it likewise flips an even number of the three labels of the single token. Thus the copied part still needs at least moves. The constructed board needs at least , proving equality.
Source and attribution
The outline and worked methods on this page were prepared for DR.WANG Mathematics.
Original question (external)