Problem

Source:

Tags: function, Functional Equations



Find all functions $f: \mathbb{N}\to \mathbb{N}$ such that for all $n\in \mathbb{N}$: \[f(f(n))+f(n)=2n+2001 \text{ or }2n+2002.\]