a_n = m a_{n-1} + k