Thursday, May 5, 2011

Function from N to N

Find all functions $f:\mathbb{N}^{*}\rightarrow\mathbb{N}^{*}$
such that

$f(n)+f(n+1)+f(f(n))=3n+1 (\forall)n\in\mathbb{N}^{*}$