Matrix Exponentiation , Number Theory.