Problem 2
Let be a fixed positive integer. The infinite sequence is defined in the following way: is a positive integer, and for every integer , if , and if . For each , determine all possible values of such that every term of the sequence is an integer.
Step 2 of 7: The odd part never decreases
Detailed analysis
If , halving removes one factor of , so . If , then ; factoring out shows the odd part becomes when , which exceeds ; when it becomes (odd, since for odd ), which by satisfies with equality exactly when . So never decreases, and strictly increases at every small-rule step except this single borderline case.