A number N is formed by writing 9 for 99 times. What is the remainder if N is divided by 13?
A11Answer
B9
C7
D1
Worked rationale
A string of 99 nines is N=9999⋯9=1099−1. So work out 1099mod13,
then subtract 1.
Find the order of 10 mod 13 (the powers cycle):
101≡10,102≡9,103≡12,104≡3,105≡4,106≡1(mod13).
The order is 6. Reduce the exponent: 99=6×16+3, so 99≡3(mod6), giving
1099≡103≡12(mod13).
Therefore
N=1099−1≡12−1=11(mod13).
Answer: (a) 11.
Why the other options miss
B
an arithmetic slip: reduces the exponent to ≡2(mod6) (a slip in 99mod6), giving
102−1≡8, or mis-reads the cycle table to land on 9.
C
wrong formula: forgets the "−1" (computes a power residue, not 1099−1) or uses a
wrong order for 10.
D
a remainder-rule slip: assumes 1099≡1 by mis-applying Fermat (1012≡1,
but 99≡0(mod6)), wrongly concluding N≡0 or echoing a 1.
Specialist insight
The unlock is rewriting a repunit-of-nines as 10k−1 — then it is a clean order-reduction. The order
of 10 mod 13 is 6 (not 12, even though Fermat guarantees 1012≡1), so reduce 99 mod 6,
not mod 12. The mandatory final step is subtracting 1; dropping it is the most common −1/3 leak. Build
the small cycle table once and read off 103≡12.
The trap, in one line
N=1099−1; ord13(10)=6, 99≡3⇒1099≡12, so N≡12−1=11⇒ (a).