So I have been calculating $2^{n}$ by $10$ until I find $n$ where n is a natural number.
Basically, I have trying values of $n$ from $0$ onward until I find the number where it keeps repeating.
But here is the thing:
$2^{0} \equiv 1 \pmod {10}$
$2^{1} \equiv 2 \pmod {10}$
$2^{2} \equiv 4 \pmod {10}$
$2^{3} \equiv 8 \pmod {10}$
$2^{4} \equiv 6 \pmod {10}$
But then this happens and I don't get it
$2^{5} \equiv 2 \pmod {10}$
Remainder is $2$ even though it should have been $1$ since it's like a clock, it should keep repeating itself from the very beginning but it started from the the second one not the first.
I don't get it. Can anybody explain this to me?