After reading Exponentiation by squaring , I know how to calculate certain (easy to express with in binary) exponents. However, I find this method inefficient to calculate on paper.
I have this following problem: 2 ^ 2000002 mod 41
What would be a "good" (efficient, quick, simple) way to approach and solve this type of problems, where the exponent is a very large number?