Periodic behavior for modulus of powers of two

nonlinear dynamicsperiodic functionssequences-and-series

I'm examining the behavior of the modulus of powers of 2 and I'm confused on how to prove that these observations are true.

  1. Consider the sequence $(a_n)_{n \in \mathbb{N}}$ defined by the last two digits of powers of 2. Prove that $a_n + a_{n+100} = 100$ for every $n \geq 2$.

  2. Prove that the sequence defined by the last three digits of the powers of 2 (starting with 008) is periodic with period 100.

Using Python, I've calculated these values and graphed them, and the behavior is clearly periodic. For example, for question (1), $a_3 + a_{103} \neq 100$, so I'm unsure if there's something broken here. And for (2), I can show through Python code that the function repeats, but I'm not sure how I would show this for all $n \in \mathbb{N}$, I'm assuming through induction.

Best Answer

For part 2:

Hint: The question is essentially asking for the smallest positive integer $n$ such that $2^n \equiv 1 \pmod {125}$.

We know from corrected part 1 that $ 2^ {10} \equiv -1 \pmod{25}$. Now verify that this is the smallest $n$ for mod 25.

Hint: Hence conclude that $2^{100} \equiv 1 \pmod{125}$ is the smallest $n$.

So, the period is 100, starting from $a_3$.


For part 1, Brian's observation works directly.
Alternatively, you can easily modify the above.

(Sorry, my previous version thought you were still summing the last 3 digits in part 2)