Problem 1
For each integer , define the sequence for by Determine all values of for which there exists a number such that for infinitely many values of .
Step 1 of 5: Determinism reduces the problem to boundedness
In plain words
The next term depends only on the current one, so a repeated value must repeat forever.
Detailed analysis
Since is completely determined by alone via a fixed function (either or ), if two terms ever coincide, say with , then for every : the sequence becomes exactly periodic with period from index onward, so recurs infinitely often. Conversely, if some number recurs infinitely often, two of the indices where it occurs give with , which by the same reasoning forces periodicity, so the sequence takes only finitely many values, i.e. it is bounded. Hence some occurs infinitely often if and only if the sequence is bounded.