Problem

Source: Czech-Polish-Slovak 2002 Q3

Tags: function, algebra unsolved, algebra



Let $S = \{1, 2, \cdots , n\}, n \in N$. Find the number of functions $f : S \to S$ with the property that $x + f(f(f(f(x)))) = n + 1$ for all $x \in S$?