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 2 of 5: Separate the missing inputs from their images
In plain words

AA records the holes left by the image of ff; BB is what those holes map to when ff is applied once.

A=N0∖f(N0),B=f(A)A=\mathbb N_0\setminus f(\mathbb N_0),\qquad B=f(A)
Detailed analysis

Let A=N0∖f(N0)A=\mathbb N_0\setminus f(\mathbb N_0) be the set of elements with no preimage, and let B=f(A)B=f(A). Since ff is injective, ∣B∣=∣A∣|B|=|A| (both may be viewed as finite or countably infinite at this stage).