Problem:
Find all positive integers such that is 1 away from .
Solution
Solution:
The solutions are .
If , , so works if and only if works.
If , , so the only solution is .
Thus, all solutions eventually become after repeatedly applying the operation , so reversing this process, every solution comes from repeatedly applying the operation to .
This operation maps to , and , giving the desired via induction.
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.