Recursionhard
0:00.0

For an=3an1(mod7)a_n = 3a_{n-1} \pmod{7} with a0=1a_0 = 1, what is the period of the sequence modulo 7?