What is the remainder when $13^{51}$ is divided by 5?
13^51 mod 5 =2 Remainder.
1351(mod5)|13(mod5)≡3≡351(mod5)|34≡1(mod5)≡34⋅12+3(mod5)≡34⋅12⋅33(mod5)≡(34)12⋅33(mod5)|34≡1(mod5)≡(1)12⋅33(mod5)|(1)12=1≡1⋅33(mod5)≡27(mod5)≡2(mod5)