Question
Mathematics Question on Number Systems
The least non-negative remainder when 351 is divided by 7 is:
A
2
B
3
C
6
D
5
Answer
6
Explanation
Solution
Use modular arithmetic to calculate 351mod7. Note that:
31≡3mod7,32≡9≡2mod7,33≡6mod7,34≡18≡4mod7.
Observe that the powers of 3 modulo 7 repeat cyclically every 6 steps: 3, 2, 6, 4, 5, 1.
Since 51mod6=3, the equivalent power is 33. From above:
33≡6mod7.
Thus, the least non-negative remainder is 6.