Problem

Source:

Tags: algebra proposed, algebra



In an infinite sequence $a_1, a_2, a_3, \cdots$, the number $a_1$ equals $1$, and each $a_n, n > 1$, is obtained from $a_{n-1}$ as follows: - if the greatest odd divisor of $n$ has residue $1$ modulo $4$, then $a_n = a_{n-1} + 1,$ - and if this residue equals $3$, then $a_n = a_{n-1} - 1.$ Prove that in this sequence (a) the number $1$ occurs infinitely many times; (b) each positive integer occurs infinitely many times. (The initial terms of this sequence are $1, 2, 1, 2, 3, 2, 1, 2, 3, 4, 3, \cdots$ )


Attachments: