Given the following recurrently defined sequence of integers:
a0 = 3,
an = 5(an−1) + 8
Prove by induction that all elements in this sequence are congruent to 3 modulo 4, or in other words:
∀n ≥ 0 :
an ≡ 3 (mod 4)
Basis step:
a0 = 3
5(an - 1)+ 8 ≡ 3 (mod 4)
5(a1 - 1)+ 8 ≡ 3 (mod 4)
5(a0)+ 8 ≡ 3 (mod 4)
5(3)+ 8 ≡ 3 (mod 4)
15 + 8 ≡ 3 (mod 4)
16 + 7 ≡ 3 (mod 4)
4^2 + 4 + 3 ≡ 3 (mod 4)
3 ≡ 3 (mod 4)
Induction Hypothesis:
n = k
5(a1 - 1)+ 8 ≡ 3
5(a2 - 1)+ 8 ≡ 3
.
.
.
5(ak - 1)+ 8 ≡ 3
Induction step:
n = k + 1
5((ak+1)-1)+ 8 ≡ 3 (mod 4)
5(ak) + 8 ≡ 3 (mod 4)
?????
I don't know how to proceed at this point. I know it'll be congruent if it's divisible by the modulo, which is 4 in this case. But, I don't know how to prove that with what I got so far