Define and for . Prove that is coprime to for all .
Solution
Consider any prime divisor of . Consider a directed graph with edges on (mod ) connecting if and only if
Observe that is connected to (mod ), every element has out-degree 1, and every element other than has in-degree 2 or 0, elements form loops, and . If we have a path , then each of the elements has in-degree two, with at least one having in-degree one, giving edges in total. Counting the four extra edges above, we deduce that , which implies that .
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.