Problem 349: (2011 AIME I, 5)
The vertices of a regular nonagon (9-sided polygon) are to be labeled with the digits 1 through 9 in such a way that the sum of the numbers on every three consecutive vertices is a multiple of 3. Two acceptable arrangements are considered to be indistinguishable if one can be obtained from the other by rotating the nonagon in the plane. Find the number of distinguishable acceptable arrangements.
- Consecutive triples overlapping in two vertices have sums that differ by $a_{i+3}-a_i$, so $a_{i+3}\equiv a_i\pmod3$. The three position classes get the three residue classes, each class $\{1,4,7\},\{2,5,8\},\{3,6,9\}$ filling one position class.
- $3!$ ways to match classes and $(3!)^3$ to arrange within them: $1296$ labelings, and no labeling is fixed by a nontrivial rotation.
- $\frac{1296}9=144$. The answer is $\boxed{144}$.
The vertices of a regular nonagon (9-sided polygon) are to be labeled with the digits 1 through 9 in such a way that the sum of the numbers on every three consecutive vertices is a multiple of 3. Two acceptable arrangements are considered to be indistinguishable if one can be obtained from the other by rotating or reflecting the nonagon in the plane. Find the number of distinguishable acceptable arrangements.