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.
Note that your solution isn't a rigorous one. You cannot claim without proof that the pattern will repeat like that indefinitely. A much simpler and rigorous solution can be given using Fermat's Little Theorem to reduce the exponentiated value into calculable small ones. Since 1 9 is a prime, we can use Fermat's Little Theorem to get,
1 1 1 1 2 2 2 2 ≡ 3 4 4 4 4 ≡ 3 − 2 ( m o d 1 9 )
Now, all you have to do is find the value of 3 − 2 ( m o d 1 9 ) , i.e., the smallest non-negative solution to the following congruence:
9 x ≡ 1 ( m o d 1 9 )
Using the Extended Euclidean Algorithm, we can find out the value. The inverse exists since g cd ( 9 , 1 9 ) = 1 . On solving, we'll get x ≡ 1 7 ( m o d 1 9 )
Hence, the answer is 1 7 .
Log in to reply
A slightly easier solution without resorting to Extended Euclidean Algorithm:
1 1 1 1 2 2 2 2 ≡ 9 2 2 2 2 ≡ 9 2 2 2 2 m o d 1 8 ≡ 9 8 ≡ 8 1 4 ≡ 5 4 ≡ 2 5 2 ≡ 6 2 ≡ − 2 ≡ 1 7
Sorry for my late reply .
There's a reason that it's a pattern. It does repeat after 9 digits, and if it wouldn't have been the case wouldn't I have got the answer wrong ? Any way, you can check it out yourself :)
But still Thanks for posting your method :)
Log in to reply
By Fermat's Little Theorem, for g cd ( a , p ) = 1 , with p prime, we have a p − 1 ≡ 1 ( m o d p ) . So the cycle (or the pattern) repeats itself at a maximum of p − 1 . It could be smaller than p − 1 , which is a factor of p − 1 itself. In this case you have p = 1 9 ⇒ p − 1 = 1 8 = 2 ⋅ 9 .
Knowing that a 2 p − 1 ≡ 1 ( m o d p ) implies a p − 1 ≡ 1 ( m o d p ) . The inverse may not be true. For example: 3 4 0 ≡ 1 ( m o d 4 1 ) but 3 2 0 ≡ 1 ( m o d 4 1 ) is simply not true.
And that's why Prasun said that your proof is not rigorous.
Note that it's better to use Euler totient function (a special case is Fermat's Little Theorem) for modular arithmetic involving exponentiation.
1 1 1 1 2 2 2 2 ≡ ( 1 1 1 1 mod 19 ) 2 2 2 2 (mod 19) ≡ 9 2 2 2 2 (mod 19) ≡ 9 2 2 2 2 mod ϕ ( 1 9 ) (mod 19) ≡ 9 2 2 2 2 mod 1 8 (mod 19) ≡ 9 8 ≡ 8 1 4 ≡ 5 4 (mod 19) ≡ 2 5 2 ≡ 6 2 ≡ 3 6 (mod 19) ≡ − 2 ≡ 1 7 (mod 19) Since g cd ( 9 , 1 9 ) = 1 Euler’s theorem applies Euler totient function ϕ ( 1 9 ) = 1 8
1 1 1 1 2 2 2 2 ≡ x (mod 19)
1 1 1 1 ≡ 9 (mod 19) ⇒ 9 2 2 2 2 ≡ x (mod 19)
Fermat's Little Theorem tells us that 9 1 8 ≡ 1 (mod 19)
2 2 2 2 ≡ 8 (mod 18) ⇒ 9 8 ≡ x (mod 19)
9 2 ≡ 5 (mod 19)
9 4 ≡ 5 2 ≡ 6 (mod 19)
9 8 ≡ 6 2 ≡ 1 7 (mod 19) ⇒ x = 1 7
Problem Loading...
Note Loading...
Set Loading...
First of all note that 1 1 1 1 ≡ 9 ( m o d 1 9 ) .
Successive powers of 1 1 1 1 leave the following remainders 9 , 5 , 7 , 6 , 1 6 , 1 1 , 4 , 1 7 and 1 . After that (i.e. after the 9 t h power) the pattern repeats .
Now, 2 2 2 2 ≡ ( m o d 8 ) the remainder in question will be the 8 t h remainder in the above list i.e. 1 7 .