I hope someone can explain me how to solve modulo -equations ,e.g.
$5^{123} \mod 2$
It was a little bit overwhelming for me to get a feeling for solving such equations.I don't how and when i have to use one of these great theorems like, Fermat's little ,Euler totient function,Chinese remainder theorem a.s.o.So I decide to ask you guys for helping me with my stacks.