What's the remainder?

Find the remainder when

5 × 5 × 5 × 5 × 5 Number of 5’s = 99 \large \underbrace{5\times5\times5\times5\cdots\times5}_{\text{Number of 5's = 99}} is divided by 13.


The answer is 8.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Method 1: By Fermat's Little Theorem 5 12 1 ( m o d 13 ) 5^{12} \equiv 1 \pmod{13} , so

5 99 = 5 12 8 + 3 5 3 ( m o d 13 ) ( 130 5 ) ( m o d 13 ) 8 ( m o d 13 ) 5^{99} = 5^{12*8 + 3} \equiv 5^{3} \pmod{13} \equiv (130 - 5) \pmod{13} \equiv \boxed{8} \pmod{13} .

Method 2: Noting that 5 2 1 ( m o d 13 ) 5^{2} \equiv -1 \pmod{13} , we then have that

5 98 ( 1 ) 49 ( m o d 13 ) 1 ( m o d 13 ) 5 99 5 ( m o d 13 ) 8 ( m o d 13 ) 5^{98} \equiv (-1)^{49} \pmod{13} \equiv -1 \pmod{13} \Longrightarrow 5^{99} \equiv -5 \pmod{13} \equiv \boxed{8} \pmod{13} .

Roger Erisman
Apr 19, 2017

Observing pattern that 5^1 / 13 has remainder 5

5^2 / 13 has remainder 12

5^3 / 13 has remainder 8

5/4 / 13 has remainder 1 and the pattern repeats

Leading to the conclusion that 5^100 / 13 will have remainder 1 so 5^99 / 13 will have remainder 8

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...