Let fr(x) denote the result when f is applied to fr−1(x) , where f1(x)=f(x) . \hfill\break\hfill\break If f(p)=f(q) , then f2(p)=f2(q) and ff(p)(p)=ff(q)(q)
⟹p2=f2(p)⋅ff(p)(p)=f2(q)⋅ff(q)(q)=q2
⟹p=±q
⟹p=q since p,q>0 .
Therefore, f is injective. It follows that fr is also injective.
Lemma 1: If fr(b)=a and f(a)=a , then b=a .
Proof:
fr(b)=a=fr(a) which implies b=a by injectivity of fr .
Lemma 2: If f2(m)=ff(m)(m)=m , and m is odd, then f(m)=m .
Proof:
Let f(m)=k . Since f2(m)=m , f(k)=m . So, f2(k)=k . f2(k)⋅ff(k)(k)=k2 .
Since k=0 , ff(k)(k)=k
⟹fm(k)=k
⟹fgcd(m,2)(k)=k
⟹f(k)=k
This proves Lemma 2.
I claim that f(m)=m for all odd m .
Otherwise, let m be the least counterexample.
Since f2(m)⋅ff(m)(m)=m2 , either
(1)f2(m)=k<m , contradicted by Lemma 1 since k is odd and f2(k)=k .
(2)ff(m)(m)=k<m , also contradicted by Lemma 1 by similar logic.
(3)f2(m)=m and ff(m)(m)=m , which implies that f(m)=m by Lemma 2.
This proves the claim.
By injectivity, f(1000) is not odd.
I will prove that f(1000) can be any even number, x . Let f(1000)=x,f(x)=1000 , and f(k)=k for all other k . If n is equal to neither 1000 nor x , then f2(n)⋅ff(n)(n)=n⋅n=n2 . This satisfies the given property.
If n is equal to 1000 or x , then f2(n)⋅ff(n)(n)=n⋅n=n2 since f(n) is even and f2(n)=n . This satisfies the given property.
The problems on this page are copyrighted by the Mathematical Association of America 's American Mathematics Competitions .