For an=3an−1(mod7)a_n = 3a_{n-1} \pmod{7}an=3an−1(mod7) with a0=1a_0 = 1a0=1, what is the period of the sequence modulo 7?
333
666
777
The sequence never repeats