Problem

Source: IMOC 2023 A1

Tags: algebra



Find all functions $f:\mathbb{N} \rightarrow \mathbb{N}$ such that for all positive integers $n$, there exists an unique positive integer $k$, satisfying $f^k(n)\leq n+k+1$.