2012 USAMO · Question 4
Problem outline
Find all functions such that for every positive integer , and divides whenever .
Show answer and methods 1 methods
Answer
for all ; for all ; or for all .
Method 1 Separate the fixed-point and no-fixed-point cases
The three stated functions satisfy both conditions. Conversely, and show that .
Suppose first that for some . Then are also fixed points, giving an unbounded sequence with . For any fixed , the congruence condition says , hence . Taking forces . Thus one fixed point greater than makes the identity.
Now assume there is no fixed point above . Let be prime. Wilson's theorem gives . Applying the congruence condition to and , and then using the factorial condition, gives . Hence ; moreover , because while is or . Therefore .
The congruence condition applied to and now says . Within the established bounds, either or ; the latter would be a forbidden fixed point. Thus for every prime . For arbitrary and arbitrarily large primes , we have . The divisor becomes unbounded, so for every . Finally the factorial condition permits only the constant values and .
Source and attribution
The outline and worked methods on this page were prepared for DR.WANG Mathematics.
Original question (external)