We introduce some notation for modular arithmetic, and then some basic rules that’ll help us solve some modular arithmetic problems.
Notation
We introduce to mean that the remainder of is . Therefore, we have that where .
Rules
Multiplication Rule: we can multiply both sides of to get .
Proof: means .
.
. since is divisible by .
Example: . Applying the rule, .
In this case, we get that , so we’ll have to apply again.
.
Modular Arithmetic Problems
Example 1: . What is ?
Solution
(Between each step, we multiply both sides by 10)We’ve encountered a “loop” since has the same remainder as . So if you apply 6 steps then it resets; and so on.
Hence . So .
Example 2: (Follow-up to Example 1). . What is ?
Solution
Following on from Example 1, we know that and further that where .
If we can find out what the exponent (which is ) mod 6 is, then we can find out . For instance, if then we know where . So then we’ll know .
Okay so we know the remainder modulo 6 of any is going to be 4. So we know . So .