I tried doing an example where $a = 10$ and $m = 4$ but I get this
$10 \equiv (10 mod 4) mod 4$
$10 \equiv 2 mod 4$
$10 \equiv 0$ ??
Is that logic not correct? What am I doing wrong?
I tried doing an example where $a = 10$ and $m = 4$ but I get this
$10 \equiv (10 mod 4) mod 4$
$10 \equiv 2 mod 4$
$10 \equiv 0$ ??
Is that logic not correct? What am I doing wrong?
If the percent sign is the modulus operator, as it is in some programming languages, $2\%4=2,$ not $0$ so $10 \equiv 2 \pmod 4$ and all is well