0

For $\text{mod 5}$,

$[1] = \{\dotsc, -4, 1, 6, \dotsc\}$

So, we can write,

$$6\equiv1\ \text{(mod 5)}\tag{1}$$

Which means that I can substitute $1$ for $6$ (and vice versa) anywhere I see it $(\text{mod 5})$. So, consider the example below:

$$6^{719} \ \text{mod 5}$$

$$=1^{719} \ \text{mod 5}$$

$$=1\ \text{mod 5}$$

$$=1$$

And this is the correct answer.

Now, consider another example,

$$2^6\ \text{mod 5}$$

$$=2^1\ \text{mod 5}\ \ \text{[Using (1)]}$$

$$=2$$

However, this is a wrong answer. The correct answer is 4. Why is substituting 1 for 6 not working in this case? Aren't they congruent to each other?

Bill Dubuque
  • 272,048

0 Answers0