179 questions linked to/from How do I compute $a^b\,\bmod c$ by hand?
### calculating $a^b \!\mod c$ [duplicate]
What is the fastest way (general method) to calculate the quantity $a^b \!\mod c$? For example $a=2205$, $b=23$, $c=4891$.