Problem
Finding the last two digits of a base with a large exponent: $237^{222222212202}$.
Method
- If the number ends on 1:
- the the second last digit is the second last base digit times the last exponent digit
- the last digit is 1
- If the number ends on odd:
- rewrite it until it is a number that ends on one and the first rule can be used $((n^4)^{e/4})$
- If the number ends on an even number:
- $..76^{n} = ..76$
- $..24^{n} = $ ..76 for even $n$ and 24 for uneven $n$
- $..2^{10} = ..24$
Solution
$$(7^4)^{55555553050}\cdot 7^2 = (2401)^{..0} \cdot 7^2 = ..01 \cdot 7^2 = 49$$
Question
- Is this method correct / could it be improved?
- Is there an easier method?
- Can someone please take my example and demonstrate it with Euler and explain it?
Thank you so much!