DR.WANG Mathematics中文

2012 USAMO · Question 4

Algebra · divisibility · factorial · function

Problem outline

Find all functions f:Z>0→Z>0f:\mathbb Z_{>0}\to\mathbb Z_{>0} such that f(n!)=f(n)!f(n!)=f(n)! for every positive integer nn, and m−nm-n divides f(m)−f(n)f(m)-f(n) whenever m≠nm\ne n.

Show answer and methods 1 methods

Answer

f(n)=1f(n)=1 for all nn; f(n)=2f(n)=2 for all nn; or f(n)=nf(n)=n for all nn.

Method 1 Separate the fixed-point and no-fixed-point cases

The three stated functions satisfy both conditions. Conversely, f(1)=f(1)!f(1)=f(1)! and f(2)=f(2)!f(2)=f(2)! show that f(1),f(2)∈{1,2}f(1),f(2)\in\{1,2\}.

Suppose first that f(a)=af(a)=a for some a>2a>2. Then a!,(a!)!,…a!, (a!)!,\ldots are also fixed points, giving an unbounded sequence MM with f(M)=Mf(M)=M. For any fixed nn, the congruence condition says M−n∣f(M)−f(n)=M−f(n)M-n\mid f(M)-f(n)=M-f(n), hence M−n∣n−f(n)M-n\mid n-f(n). Taking M>∣n−f(n)∣+nM>|n-f(n)|+n forces f(n)=nf(n)=n. Thus one fixed point greater than 22 makes ff the identity.

Now assume there is no fixed point above 22. Let p>3p>3 be prime. Wilson's theorem gives (p−2)!≡1(modp)(p-2)!\equiv1\pmod p. Applying the congruence condition to (p−2)!(p-2)! and 11, and then using the factorial condition, gives f(p−2)!≡f(1)(modp)f(p-2)!\equiv f(1)\pmod p. Hence f(p−2)<pf(p-2)<p; moreover f(p−2)≠p−1f(p-2)\ne p-1, because (p−1)!≡−1(modp)(p-1)!\equiv-1\pmod p while f(1)f(1) is 11 or 22. Therefore f(p−2)≤p−2f(p-2)\le p-2.

The congruence condition applied to p−2p-2 and 11 now says p−3∣f(p−2)−f(1)p-3\mid f(p-2)-f(1). Within the established bounds, either f(p−2)=f(1)f(p-2)=f(1) or f(p−2)=p−2f(p-2)=p-2; the latter would be a forbidden fixed point. Thus f(p−2)=f(1)f(p-2)=f(1) for every prime p>3p>3. For arbitrary nn and arbitrarily large primes pp, we have p−2−n∣f(1)−f(n)p-2-n\mid f(1)-f(n). The divisor becomes unbounded, so f(n)=f(1)f(n)=f(1) for every nn. Finally the factorial condition permits only the constant values 11 and 22.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)