Remainder Again?

What is the remainder when 1 3 682 13^{682} is divided by 7? Extension: How many approaches do you know to solve this problem?


The answer is 1.

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.

3 solutions

Kenny Lau
Nov 30, 2014

Approach one: simplification of base to negative 1 3 682 ( 1 ) 682 1 (mod 7) 13^{682}\equiv(-1)^{682}\equiv1\mbox{ (mod 7)}


Approach two: simplification of base to positive 1 3 682 6 682 3 6 341 1 3 41 1 (mod 7) 13^{682}\equiv6^{682}\equiv36^{341}\equiv1^341\equiv1\mbox{ (mod 7)}


Approach three: simplification of index by Fermat's Little Theorem 1 3 682 1 3 6 × 113 + 4 1 3 4 28561 1 (mod 7) 13^{682}\equiv13^{6\times113+4}\equiv13^4\equiv28561\equiv1\mbox{ (mod 7)}


Approach four: binary 682 = 512 + 128 + 32 + 8 + 2 682=512+128+32+8+2 1 3 1 1 (mod 7) 13^1\equiv-1\mbox{ (mod 7)} 1 3 2 1 (mod 7) 13^2\equiv1\mbox{ (mod 7)} 1 3 4 1 (mod 7) 13^4\equiv1\mbox{ (mod 7)} 1 3 8 1 (mod 7) 13^8\equiv1\mbox{ (mod 7)} 1 3 16 1 (mod 7) 13^{16}\equiv1\mbox{ (mod 7)} 1 3 32 1 (mod 7) 13^{32}\equiv1\mbox{ (mod 7)} 1 3 64 1 (mod 7) 13^{64}\equiv1\mbox{ (mod 7)} 1 3 128 1 (mod 7) 13^{128}\equiv1\mbox{ (mod 7)} 1 3 256 1 (mod 7) 13^{256}\equiv1\mbox{ (mod 7)} 1 3 512 1 (mod 7) 13^{512}\equiv1\mbox{ (mod 7)} 1 3 682 = 1 3 512 + 128 + 32 + 8 + 2 = 1 3 512 × 1 3 128 × 1 3 32 × 1 3 8 × 1 3 2 1 × 1 × 1 × 1 × 1 = 1 (mod 7) 13^{682}=13^{512+128+32+8+2}=13^{512}\times13^{128}\times13^{32}\times13^8\times13^2\equiv1\times1\times1\times1\times1=1\mbox{ (mod 7)}

Nice usage of binary, I didn't thought of using that! Long but beautiful approach.

Marc Vince Casimiro - 6 years, 6 months ago
Jordi Bosch
Nov 30, 2014

Faster method: 13 1 ( m o d 7 ) 1 3 682 ( 1 ) 682 1 ( m o d 7 ) 13 \equiv -1 \pmod{7} \Rightarrow 13^{682} \equiv (-1)^{682} \equiv 1 \pmod{7}

What we are looking here is 1 3 682 x ( m o d 7 ) 13^{682}\equiv x \pmod{7} First approach: Euler's totient function. We know that φ ( 7 ) = 6 \varphi(7)=6 Thus, we can reduce the exponent by subtracting 6 k 6k where k is an integer such that 682 > 6 k 682>6k so, 1 3 682 113 6 x ( m o d 7 ) 13^{682-113*6}\equiv x \pmod{7} 1 3 4 x ( m o d 7 ) 13^{4}\equiv x \pmod{7} 28561 1 ( m o d 7 ) 28561\equiv1\pmod{7}

Another approach:

Write 1 3 682 13^{682} as ( 14 1 ) 682 (14-1)^{682} . Expanding this horrendous expression, we will get all the terms which are a factor of 14 14 except the last term whose value would be 1 1 . So, 7 7 would divide all the terms except the last term i.e. 1 1 and hence, our remainder would be 1 1 .

Yash Singhal - 6 years, 6 months ago

Log in to reply

This is called remainder theorem

Parveen Soni - 6 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...