When using a congruences can we substitute them into an expression. For example, when we look at Fermat's little theorem we notice that $a^p$ is congruent to $a\ (\text{mod}\ p)$ when $a$ is an integer and $p$ is prime, so where ever we see $a^p$ where $a$ is an integer and $p$ is prime, can we simply substitute $a\ (\text{mod}\ p)$ for $a^p$?
2026-05-04 14:54:14.1777906454
Can you substitute congruences into an expression if the conditions are right?
50 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
Yes in general using congruences all algebraic rules hold for for the sum and product and we can substitute them into an expression, notably for
we have that