9 8 7 6 5 4 3 2 1
Find the last three digits of the number above.
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.
Could we do it like this?
We see that for any power of 6, the u.d is always 6. Then , for every power of 7 that leaves remainder 2 on dividing by 4, the u.d is 9. Then , for every power of 8 that leaves remainder 1 on dividing by 4, the u.d is 8. thus calculate the last three digits of 9^8 by squaring the last three digits of 9^4
Log in to reply
This does not make sense. You can't just look at the last digit of b to figure out the last digit of a b
No. You are thinking of applying Euler's Theorem . To do so, we must calculate ϕ ( 1 0 0 0 ) = 2 1 × 5 4 × 1 0 0 0 = 4 0 0 . Hence, to determine the last 3 digits, we need to look at the exponent 8 7 … modulo 400 (instead of 1000).
Similarly, to determine it modulo 400, since ϕ ( 4 0 0 ) = 1 6 0 , thus we need to look at the exponent 7 6 … modulo 160. So on and so forth.
Sounds good! I overlooked the simple fact that 6 n always ends in 6; that is why I worked from the bottom upward.
Log in to reply
I think that the tens digit also has some role to play here. So I am not sure if I am correct.
Woah I wasted my 2 attempts by putting 1 as the answer LOL
My approach is similar to Arjen's. I will use Arjen's time-saving notation A = 9 B = 9 8 C = 9 8 7 D . Let's consider the Carmichael Lambda throughout, with λ ( 1 0 0 0 ) = 1 0 0 , λ ( 2 5 ) = 2 0 and λ ( 2 0 ) = 4 .
Now D ≡ 0 ( m o d 4 ) so C = 7 D ≡ 7 0 = 1 ( m o d 2 0 ) and B = 8 C ≡ 8 1 = 8 ( m o d 2 5 ) . It follows that B ≡ 8 ( m o d 1 0 0 ) as well so that A = 9 B ≡ 9 8 = ( − 1 + 1 0 ) 8 ≡ 1 − 8 ∗ 1 0 + ( 2 8 ) 1 0 0 ≡ 7 2 1 ( m o d 1 0 0 0 )
The question is finding 9 8 7 6 5 4 3 2 1 modulo 1 0 0 0 . By Euler's Theorem, The question can be changed to be
9 8 7 6 5 4 3 2 1 ≡ ⎩ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎧ 1 ( m o d 8 ) 9 ⎝ ⎛ 8 7 6 5 4 3 2 1 m o d ϕ ( 1 0 0 0 ) ⎠ ⎞ ( m o d 1 2 5 )
We need to find 8 7 6 5 4 3 2 1 modulo ϕ ( 1 0 0 0 ) = 1 0 0 0 × ( 1 − 2 1 ) × ( 1 − 5 4 ) = 4 0 0
Now, we find the residu of 8 7 6 5 4 3 2 1 modulo 1 6 and 2 5 . Note that 8 2 ≡ 0 ( m o d 1 6 ) , then since 8 7 6 5 4 3 2 1 = 8 2 × 8 n , so 8 7 6 5 4 3 2 1 ≡ 0 ( m o d 1 6 ) . Now, by using Euler's Theorem with ϕ ( 2 5 ) = 2 0 we evaluate
8 7 6 5 4 3 2 1 ≡ ⎩ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎧ 0 ( m o d 1 6 ) 8 ⎝ ⎛ 7 6 5 4 3 2 1 m o d 2 0 ⎠ ⎞ ( m o d 2 5 )
We need to find 7 6 5 4 3 2 1 modulo 2 0 , then we must find 6 5 4 3 2 1 modulo ϕ ( 2 0 ) = 8 . Note that 6 3 ≡ 0 ( m o d 8 ) . Since 6 5 4 3 2 1 = 6 3 × 6 m , so 6 5 4 3 2 1 ≡ 0 ( m o d 8 ) . Now, we have 7 6 5 4 3 2 1 ≡ 7 0 ( m o d 2 0 ) .
Thus,
8 7 6 5 4 3 2 1 ≡ ⎩ ⎨ ⎧ 0 ( m o d 1 6 ) 8 ( m o d 2 5 )
Using Chinese Rimainder Theorem we get 8 7 6 5 4 3 2 1 ≡ 2 0 8 ( m o d 4 0 0 ) . Now, using this value, our first congruence system becomes
9 2 0 8 ≡ ⎩ ⎨ ⎧ 1 ( m o d 8 ) 9 6 ( m o d 1 2 5 )
Finally, again using Chinese Rimainder Theorem, we get 9 2 0 8 ≡ 7 2 1 ( m o d 1 0 0 0 )
Hence, the answer is 7 2 1
Brute Force.
We need to find x = 9 a m o d 1 0 0 0 .
Find the cycle of 9 modulo 1000. It's
[9, 81, 729, 561, 49, 441, 969, 721, 489, 401, 609, 481, 329, 961, 649, 841, 569, 121, 89, 801, 209, 881, 929, 361, 249, 241, 169, 521, 689, 201, 809, 281, 529, 761, 849, 641, 769, 921, 289, 601, 409, 681, 129, 161, 449, 41, 369, 321, 889, 1]
Which is of length 5 0 .
So, now find a = 8 b m o d 5 0 .
Cycle of 8 modulo 50. It's
[8, 14, 12, 46, 18, 44, 2, 16, 28, 24, 42, 36, 38, 4, 32, 6, 48, 34, 22, 26]
Which is of length 2 0 .
Now find b = 7 c m o d 2 0 .
Cycle of 7 modulo 20. It's
[7, 9, 3, 1]
Which is of length 4 .
c = 6 5 ⋯ = 0 m o d 4 .
∴ b = 1 m o d 2 0
∴ a = 8 m o d 5 0
∴ x = 7 2 1 m o d 1 0 0 0
we know that x n ≡ x n ( m o d ϕ ( m ) ) ( m o d m ) . where ϕ ( k ) is eulerss toitent function. using this continuously on all the exponents, . we start computing from thr top, but wait! we see that 6 5 ⋯ ≡ 0 ( m o d 6 4 ) . so we can just ut it as 0 to get 7 0 . we see that it becomes one making the exponent: 9 8 1 ≡ ( 9 4 ) 2 ≡ 5 6 1 2 ≡ 7 2 1 ( m o d 1 0 0 0 )
Problem Loading...
Note Loading...
Set Loading...
Name the expression A . We must calculate A mod 1000, and do that by considering both A mod 8 and A mod 125. First of all, A = 9 B ≡ 1 B ≡ 1 mod 8 . For the mod 125, we need to know the exponent B modulo ϕ ( 1 2 5 ) = 1 0 0 = 4 × 2 5 . Writing B = 8 C , we see immediately that B = 8 C ≡ 0 C ≡ 0 mod 4 . It takes more effort to find 8 C modulo 25. This requires that we find C modulo ϕ ( 2 5 ) = 2 0 = 4 × 5 .
Start by writing C = 7 D . Since D , a power of 6, will be even, we have C = 7 D ≡ ( − 1 ) D ≡ 1 mod 4 . Also, considering the fact that D = 6 E will be a multiple of 4 = ϕ ( 5 ) , we have C ≡ 2 D ≡ 2 0 ≡ 1 mod 5 . Combining what we have about C we conclude C ≡ 1 mod 2 0 ; B = 8 C ≡ 8 1 ≡ 8 mod 2 5 . Combine this with B ≡ 0 mod 4, and we have B ≡ 8 mod 1 0 0 ; A = 9 B ≡ 9 8 ≡ 8 1 4 ≡ 6 1 2 ≡ 2 2 1 mod 1 2 5 . Finally, combined with A ≡ 1 mod 8, this results in A ≡ 7 2 1 mod 1 0 0 0 .