Problem

Source: ELMO Revenge #4

Tags: functional equation, function, algebra, revenge elmo, revenge elsmo, relmo



Find all ordered pairs of integers $(a,b)$ such that there exists a function $f\colon \mathbb{N} \to \mathbb{N}$ satisfying $$f^{f(n)}(n)=an+b$$ For all $n\in \mathbb{N}$.