MathLabs

Problem 4

Prove that there is no function ff from the set of non-negative integers into itself such that f(f(n))=n+1987f(f(n)) = n + 1987 for every non-negative integer nn.
Step 1 of 5: First prove f is injective
In plain words

Applying ff twice recovers the input up to the same translation, so two inputs with the same first image must already have been equal.

f(f(m))=f(f(n))  ⟹  m+1987=n+1987  ⟹  m=nf(f(m))=f(f(n))\implies m+1987=n+1987\implies m=n
Detailed analysis

If f(m)=f(n)f(m)=f(n), applying ff to both sides gives f(f(m))=f(f(n))f(f(m))=f(f(n)). The assumed equation then yields m+1987=n+1987m+1987=n+1987, hence m=nm=n. Thus ff is injective.