Question
Mathematics Question on Number Systems
The remainder when 61029 is divided by 7 is:
A
6
B
1
C
0
D
3
Answer
6
Explanation
Solution
We are tasked to compute 61029mod7. Using Fermat's Little Theorem:
Step 1: Apply Fermat's Little Theorem.
Fermat's Little Theorem states:
ap−1≡1(modp),
for a prime p and an integer a not divisible by p. Here a=6 and p=7. Since 6 is not divisible by 7, we have:
66≡1(mod7).
Step 2: Simplify the exponent.
To compute 61029mod7, divide 1029 by 6 (the exponent cycle length from Fermat's theorem):
1029÷6=171 remainder 3.
Thus:
61029≡63(mod7).
Step 3: Compute 63mod7.
Now calculate 63mod7:
63=216.
Find the remainder when 216 is divided by 7:
216÷7=30 remainder 6.
Thus:
63≡6(mod7).
Final Answer:
6