Given a positive integer and the function described by
Determine the set .
Romanian Mathematical Olympiad - Final Round
Solution
As for we have , and for we have , we get . It follows that if , then
If , then , a contradiction, thus is contained in .
We shall prove the equality . We give two proofs for the reverse inclusion.
i.
From deduce . As , is congruent to modulo . Inductively, . Because for , we obtain if .
ii.
Use base 2 to represent any number in using digits, putting zero at the beginning, if necessary. To obtain from one has to move the last digit of on the first position. After movements the digits of are at the same places as at the beginning, that is .
Want a route through all this instead of an archive? The track
puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.