MathLabs

Problem 5

Determine all functions ff from the set of positive integers to the set of positive integers such that, for all positive integers aa and bb, there exists a non-degenerate triangle with sides of lengths aa, f(b)f(b) and f(b+f(a)−1)f(b+f(a)-1). (A triangle is non-degenerate if its vertices are not collinear.)
Step 2 of 4: A second application pins the increment to a constant
Δ:=f(2)−1>0,f(n+1)=f(n)+Δ  or  f(n−1)=f(n)+Δ\Delta:=f(2)-1>0,\qquad f(n+1)=f(n)+\Delta \ \text{ or } \ f(n-1)=f(n)+\Delta
Detailed analysis

Since f(f(n))=nf(f(n))=n, ff is injective, so f(2)≠f(1)=1f(2)\ne f(1)=1, giving Δ:=f(2)−1≥1\Delta:=f(2)-1\ge1. Take a=2,b=f(n)a=2,b=f(n): the triangle with sides 2,f(f(n)),f(f(n)+f(2)−1)=2,n,f(f(n)+Δ)2,f(f(n)),f(f(n)+f(2)-1)=2,n,f(f(n)+\Delta) forces ∣n−f(f(n)+Δ)∣<2|n-f(f(n)+\Delta)|<2, so y:=f(f(n)+Δ)∈{n−1,n,n+1}y:=f(f(n)+\Delta)\in\{n-1,n,n+1\}. Applying ff (using f∘f=idf\circ f=\mathrm{id}) to y=f(f(n)+Δ)y=f(f(n)+\Delta) gives f(y)=f(n)+Δf(y)=f(n)+\Delta. If y=ny=n this reads f(n)=f(n)+Δf(n)=f(n)+\Delta, impossible since Δ>0\Delta>0. So y=n±1y=n\pm1, giving f(n+1)=f(n)+Δf(n+1)=f(n)+\Delta or f(n−1)=f(n)+Δf(n-1)=f(n)+\Delta.