MathCastle
Algebra 2Hard

Algebra 2 · Hard problem

A sequence is defined by a1=3a_1 = 3 and ak+1=2ak mod 5a_{k+1} = 2a_k \bmod 5 (the remainder when 2ak2a_k is divided by 55). What is a40a_{40}?

Practice more like this