Problem:
How many ways are there to arrange the numbers in a circle so that every two adjacent elements are relatively prime? Consider rotations and reflections of the same arrangement to be indistinguishable.
Solution
Solution:
Note that can only be adjacent to , , and , so there are ways to pick its neighbors. Since each of , , and is relatively prime to every number in but itself (and hence can have arbitrary neighbors), without loss of generality suppose we have picked and as neighbors of . Observe that fixing the positions of , , and eliminates the indistinguishability of rotations and reflections.
Now, we have to consecutively arrange so that no two of , , and are adjacent. There are ways of doing so, so the final answer is .
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.