Problem

Source: Mathcenter Contest / Oly - Thai Forum 2010 R1 p6 https://artofproblemsolving.com/community/c3196914_mathcenter_contest

Tags: algebra, functional equation



Find all $a\in\mathbb{N}$ such that exists a bijective function $g :\mathbb{N} \to \mathbb{N}$ and a function $f:\mathbb{N}\to\mathbb{N}$, such that for all $x\in\mathbb{N}$, $$f(f(f(...f(x)))...)=g(x)+a$$where $f$ appears $2009$ times. (tatari/nightmare)