What is the remainder when 1 3 6 8 2 is divided by 7? Extension: How many approaches do you know to solve this problem?
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.
Nice usage of binary, I didn't thought of using that! Long but beautiful approach.
Faster method: 1 3 ≡ − 1 ( m o d 7 ) ⇒ 1 3 6 8 2 ≡ ( − 1 ) 6 8 2 ≡ 1 ( m o d 7 )
What we are looking here is 1 3 6 8 2 ≡ x ( m o d 7 ) First approach: Euler's totient function. We know that φ ( 7 ) = 6 Thus, we can reduce the exponent by subtracting 6 k where k is an integer such that 6 8 2 > 6 k so, 1 3 6 8 2 − 1 1 3 ∗ 6 ≡ x ( m o d 7 ) 1 3 4 ≡ x ( m o d 7 ) 2 8 5 6 1 ≡ 1 ( m o d 7 )
Another approach:
Write 1 3 6 8 2 as ( 1 4 − 1 ) 6 8 2 . Expanding this horrendous expression, we will get all the terms which are a factor of 1 4 except the last term whose value would be 1 . So, 7 would divide all the terms except the last term i.e. 1 and hence, our remainder would be 1 .
Problem Loading...
Note Loading...
Set Loading...
Approach one: simplification of base to negative 1 3 6 8 2 ≡ ( − 1 ) 6 8 2 ≡ 1 (mod 7)
Approach two: simplification of base to positive 1 3 6 8 2 ≡ 6 6 8 2 ≡ 3 6 3 4 1 ≡ 1 3 4 1 ≡ 1 (mod 7)
Approach three: simplification of index by Fermat's Little Theorem 1 3 6 8 2 ≡ 1 3 6 × 1 1 3 + 4 ≡ 1 3 4 ≡ 2 8 5 6 1 ≡ 1 (mod 7)
Approach four: binary 6 8 2 = 5 1 2 + 1 2 8 + 3 2 + 8 + 2 1 3 1 ≡ − 1 (mod 7) 1 3 2 ≡ 1 (mod 7) 1 3 4 ≡ 1 (mod 7) 1 3 8 ≡ 1 (mod 7) 1 3 1 6 ≡ 1 (mod 7) 1 3 3 2 ≡ 1 (mod 7) 1 3 6 4 ≡ 1 (mod 7) 1 3 1 2 8 ≡ 1 (mod 7) 1 3 2 5 6 ≡ 1 (mod 7) 1 3 5 1 2 ≡ 1 (mod 7) 1 3 6 8 2 = 1 3 5 1 2 + 1 2 8 + 3 2 + 8 + 2 = 1 3 5 1 2 × 1 3 1 2 8 × 1 3 3 2 × 1 3 8 × 1 3 2 ≡ 1 × 1 × 1 × 1 × 1 = 1 (mod 7)