Remainder?

Find the remainder when 3 1989 3^{1989} is divided by 7.


The answer is 6.

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

Note first that 3 3 = 27 = 4 × 7 1 1 ( m o d 7 ) 3^{3} = 27 = 4 \times 7 - 1 \equiv -1 \pmod{7} and that 1989 = 3 × 663 1989 = 3 \times 663 . Thus

3 1989 = ( 3 3 ) 663 ( 1 ) 663 ( m o d 7 ) 1 ( m o d 7 ) 6 ( m o d 7 ) 3^{1989} = (3^{3})^{663} \equiv (-1)^{663} \pmod{7} \equiv -1 \pmod{7} \equiv \boxed{6} \pmod{7} .

Tapas Mazumdar
Apr 25, 2017

Relevant wiki: Euler's Theorem

3 1989 ( m o d 7 ) = 3 1989 ( m o d ϕ ( 7 ) ) ( m o d 7 ) As gcd ( 3 , 7 ) = 1 we can apply Euler’s theorem = 3 3 ( m o d 7 ) 6 \begin{aligned} 3^{1989} \pmod 7 &= 3^{1989 \pmod{\phi (7)}} \pmod 7 & \small{\color{#3D99F6} \text{As } \text{gcd}(3,7) = 1 \text{ we can apply Euler's theorem}} \\ &= 3^3 \pmod 7 \\ & \equiv \boxed{6} \end{aligned}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...