9 8 7 6 5
What are the last two digits when this integer fully expanded out?
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 you don't actually need to keep all the digits in of 9 n .
There's a much simpler systematic approach. Hint: Chinese Remainder Theorem, Euler totient function.
I think it is much better to use ( − 9 ) n = ( 1 − 1 0 ) n ≡ 1 − 1 0 n ( m o d 1 0 0 ) and so on.
This is basically the same solution I used!
There actually is an even simpler solution. Once you found the pattern length of 10, you can use properties of exponents to make the problem into 9^1680. Take 1680 over 10 and then módulo 10 to get 9^8, whose last two digits is 21.
We can use Euler's theorem to find last two digits of 9^8^7^6^5. We need to use the property that if k=j mod phi( n) then k=phi(n)×q + j , for some integer q and a^k. =a^j mod n .( Using '=' for congruency ×lol😂😂)
Now, Phi(100)=40; Phi(40)=16 ; Phi(16)=8 and phi(8)=4 and using the property stated above we have,
5=1mod(4)
=> 6^5=6mod(8)
=> 7^6^5=7^6mod(16)
= (7^2)^3=49^3=1^3=1 mod (16)
=> 8^7^6^5 mod(40)=8 mod(40)
=> 9^8^7^6^5 mod (100)=9^8 mod (100)
=6561×6561mod(100)
=61×61 mod(100)
=3721 mod(100)
=21 mod(100)
Thus we have that the last two digits of 9^8^7^6^5 is 21.
9^2=81 Consider (80+1)^k , the smallest k for the expression = 1 mod 100 is 5. So we know 9^10 = 1 mod 100
I checked by computing the results on a computer: it turns out that the last digits are '01'. The full number has 1604 digits, here are the first and last five: 13409...59201
it is exercise for Fifteen student in Vietnam
9^8^7^6^5 = 9^1680
9^10 is equiv to 01 (mode 100)
so 9^1680 is equiv to 01 (mode 100)
Hence my ans is 01
Log in to reply
It is exercise for my friend when he is on fifth grade -_-
@Corrado Gioannini I guess you are calculating (((9^8)^7)^6)^5 and not 9^(8^(7^(6^5))).
I did this without any number theory whatsoever, just playing around with numbers.
First observation: The last two digits of 9 n is repeating like this: 09-81-29-61-49-41-69-21-89-01
There are 10 possibilities, all we need is the last digit of 8 7 6 5 to know which one to choose.
The last digit of 8 n is repeating like this:
8-4-2-6
Now we need the reminder of 7 6 5 divided by 4 to choose one of these.
100 is divisible by 4, so all we need the last two digits.
The last two digit of 7 n is repeating like this:
07-49-43-01
Observe that 6 5 = 2 5 × 3 5 is divisible by 4. Therefor 7 6 5 ends with 01. From this we know that 8 7 6 5 ends with 8, and finally 9 8 7 6 5 ends with 21.
That's all number theory. =]
Niceee aaaa
Siaoo gongg
Cjom beng a
By Euler's theorm
9 8 7 6 5 ≡ 9 8 7 6 5 m o d ϕ ( 1 0 0 ) ( m o d 1 0 0 )
Note that ϕ ( 1 0 0 ) = 1 0 0 ( 1 − 2 1 ) ( 1 − 5 1 ) = 4 0
Now we find the remainder of 8 7 6 5 devided by 4 0
Since, g cd ( 8 7 6 5 , 4 0 ) = 1 , we break 4 0 into 5 × 8
Trivially,
8 7 6 5 ≡ 0 ( m o d 8 )
and, again, by Euler's theorm
8 7 6 5 ≡ 8 7 6 5 m o d 4 ( m o d 5 )
since ϕ ( 5 ) = 4
Once again, by Euler's theorm,
7 6 5 ≡ 7 6 5 m o d 2 ( m o d 4 ) ≡ 7 0 ≡ 1
Substituding this, we have
8 7 6 5 ≡ 8 ≡ 3 ( m o d 5 )
By finding the first positive integer x such that
x ≡ 0 ( m o d 8 ) x ≡ 3 ( m o d 5 )
we get
8 7 6 5 ≡ 8 ( m o d 4 0 )
hence,
9 8 7 6 5 ≡ 9 8 ( m o d 1 0 0 ) ≡ 6 5 6 1 2 ≡ 6 1 2 ≡ 3 7 2 1 ≡ 2 1
I am a bit puzzled by the finding. If 9^8^7^6^5 = 9^(5 6 7 8) = 9^42^40 (by pairing 6 7 and 5*8) then we simply have (by Euler's theorem: a^phi(n)=1 mod n for a=9^42, n=100 and phi(n)=40) (9^42)^40 = 1 mod 100. Thus last 2 digits are 01.
In Matlab I did rem(rem(rem(rem(9^8,100)^7,100)^6,100)^5,100) and found 01 as well.
Log in to reply
Without parentheses to modify the order of operations, the conventional order is top-down (or right-associative), not bottom-up (or left-associative)
a b c = a ( b c ) = ( a b ) c = a b c
For example,
4 3 2 4 3 2 = 4 9 = 2 6 2 1 4 4 = 4 2 × 3 = 4 0 9 6
Easy Method... We will frame it as (9^{2})^{8}^{7}^{6} .Remember we will also divide the multiplication of exponents by 2 as we have squared the 9.Now we will find the last digit of 8^{7}^{6}^{5}. To find this we would find the remainder of 7^{6}^{5} when divided of 4(cyclicity of 8). This is calculated as (8-1)^{6}^{5} divide by 4.Remainder is 1(very easy....) Now 8^{1}= 8. Now you remember we have to divide the multiplication by 2. So 8÷2= 4. Now we are in a very good situation. We just have to find the last 2 digits of 81^{4} which is 21...
you're quite intelligent . well, thanks for the solution.
this is not conceptually true. you got the correct answer because it was a coincidence. it could be 18/2 and hence it could end with 9 as the last digit.
this problem it's an modular arithmetic problem, we can easily take
6 5 = 7 7 7 6
7 n m o d 1 0 0 = n m o d 4 so the last two digits (that is all we need would be 01 )
Observing the cycle in 8 n we can induce that it is congruent to 8 1 and finnaly conclude doing the same process in 9 n we can observe that it would had the same last digits as 9 8 that are 6721
The pattern repeats after the eleventh power of 9. Following to that, the pattern repeats after the 1672th power, because 1672 is equal to 11 multiplied with 152. The last two Digits of the searched number are the same of the 8th power of 9, 21.
I used the Chinese remainder theorem and I considered the number mod 5 and mod 20 . Our number is congruent to 1 mod 20 and mod 5, so the last 2 digits are 21
Consecutive powers of 9 are 9 , 8 1 , 2 9 , 6 1 , 4 9 , 4 1 , 6 9 , 2 1 , 8 9 , 1 , . . . ( m o d 1 0 0 ) , repeating every 10th power. So we need to know what is 8 7 6 5 ( m o d 1 0 ) .
Consecutive powers of 8 have end digit 8 , 4 , 2 , 6 , 8 , . . . repeating every 4th power, so it matters what 7 6 5 ( m o d 4 ) is.
Consecutive powers of 7 ( m o d 4 ) are 3 , 1 , 3 , 1 alternating, so 7 to an even power is always 1 (mod 4), and 6^5 is certainly even.
Now working our way back:
7 6 5 = 1 ( m o d 4 )
8 7 6 5 = 8 ( m o d 1 0 )
so 9 8 7 6 5 = 2 1 ( m o d 1 0 0 )
9 k ≡ 1 ( m o d 1 0 ) for even k, and 9 k ≡ 9 ( m o d 1 0 ) for odd k.
Now observing the pattern in the last 2 digits of powers of 9: 9 1 9 2 9 3 9 4 9 5 9 6 0 9 8 1 2 9 6 1 4 9 4 1
Starting from 9 2 and looking at only even powers the digit in the 10s column decreases by 2 after each power increase, it will do this until it reaches 0 and then starts the cycle again, there are 5 things in the cycle.
Now to check if 8 7 6 5 is odd or even. Well 5 ≡ 1 ( m o d 2 ) ⟹ 7 6 5 ≡ 1 ( m o d 2 ) 8 7 6 5 ≡ 0 ( m o d 2 ) So the power is even meaning the last digit is a 1 and we are looking at the even power cycle.
8 7 6 5 ≡ 4 ( m o d 5 ) So counting down to the 4th entry in our even powers pattern means the last two digits of 9 8 7 6 5 ≡ 2 1 ( m o d 1 0 0 )
Last two digits are 2 1
I went with Euler's little theorem. So I had :
Given the pattern of last two digits in the powers of 9: 9 1 9 2 9 3 9 4 9 5 9 6 9 7 9 8 9 9 9 1 0 . . . = 0 9 = 8 1 = . . . 2 9 = . . . 6 1 = . . . 4 9 = . . . 4 1 = . . . 6 9 = . . . 2 1 = . . . 8 9 = . . . 0 1
and last digit in the powers of 8: 8-4-2-6-8-..., it is easy to see that an odd power of 8 will end up in either 8 or 2. Any positive integral power of 7 is odd. And so, the answer corresponds to either 9 2 or 9 8 . There, you can use 2 attempts at maximum to get the write answer!
Last two digits means remainder with 100. And 9 = -91 mod 100.
Also 8^{7}^{6}^{5} is EVEN, so 9^{EVEN} = 91^{EVEN} mod 100
Also noteworthy is that ten's digit of (A1)^{BCD} is obtained by unit digit of A\times D. As (A1)^{BCD} = (10A + 1)^{BCD} = BCD\times 10A + 1.
Here unit digit of 8^{7}^{6}^{5} = 8, and unit digit of 9\times 8 = 2.
Hence the required last two digits are \boxed{21}.
Here 6^5 can be find out..Now 7 has period 4(7,9,3,1)..and we knew that 6^5 is divisible by 4..so last digit of 7^6^5 will be 1..Now 8 also has period 4(8,4,2,6)..So check the divisibility of 7^6^5 by 4, But it is a long process..So If the last digit of 7^6^5 is 1 we are left with 2 options for the last digit of 8^7^6^5=x(Here i suppose the value as 'x' for simplicity) which are 8 or 2..as remainder can be 1 or 3, when it is divided by 4..Now 8^7^6^5~1 mod(4), and so last digit will be 8, as per (8,4,2,6,) period of 8... Now for (10-1)^x the last 2 digits can be find out using Binomial theorem as follows... -(Xc1) 10+1=-(.....8 ) 10+1= (10-8)*10+1=21(Here the last 2 terms of Binomial Expansion is to be considered, as other terms will have more than one 0's at the end)...(Here the property that last digit of 9^2n equals to the [10-(last digit of 11^2n )] is used)..and here 'x' is even integer..
Can you rephrase your solution? It's not entirely clear what you're trying to convey.
I did 9 ^ 8 mod 100 ^7 mod 100 ^ 6 mod 100 ^ 5 mod 100
Which in the end is 9 ^ 8 mod 100
Log in to reply
No, that doesn't exactly work. Tower of exponents are evaluated from the top down, and not the bottom up. Review Rules of Exponents - Algebraic
Simple; Take 9 8 7 6 5 ( m o d , 1 0 0 ) = 2 1
Your solution is completely useless, you're just rephrasing the question and giving the final answer.
Useless solution
Simple proof:
Claim: The answer is 21
Proof by counter example: If the answer was not 21, then Brilliant would not have displayed "Correct!" when I typed my answer
Therefore, either the answer is 21 or the question is wrong.
By the College exam Induction theorem, The question cannot be wrong, therefore the answer is 21
Problem Loading...
Note Loading...
Set Loading...
9 2 n will always end in a 1 , while 9 2 n + 1 will always end in a 9 (for example, 9 4 = 6 5 6 1 and 9 5 = 5 9 0 4 9 . As this pattern works for the first digit of 9 n , the problem asks for the first two digits. Here is the pattern as shown in the first few values in 9 n :
9 1 = 0 9
9 2 = 8 1
9 3 = 7 2 9
9 4 = 6 5 6 1
9 5 = 5 9 0 4 9
9 6 = 5 3 1 4 4 1
9 7 = 4 7 8 2 9 6 9
9 8 = 4 3 0 4 6 7 2 1
9 9 = 3 8 7 4 2 0 4 8 9
9 1 0 = 3 4 8 6 7 8 4 4 0 1
9 1 1 = 3 1 3 8 1 0 5 9 6 0 9
As you can see, the pattern starts over again at 9^11, therefore our pattern is of length 1 0 . This means that all we have to do is find the first digit of 8 7 6 5 and we'll have our answer (another way to phrase this is that we need to find some n such that 8 7 6 5 ≡ n (mod 1 0 ) To do that we need to first find the pattern for the first digit of 8 n . 8 1 = 8 , 8 2 = 6 4 , 8 3 = 5 1 2 , 8 4 = 4 0 9 6 , and 8 5 = 3 2 7 6 8 , making our pattern is of length 4 . This means we need to find a number n where 7 6 5 ≡ n (mod 4 ). Finding the remainder when dividing by 4 is really the same as finding the first digit of something; the first digit is really the remainder of something when you divide by 10. 7 1 = 7 ≡ 3 (mod 4 ), 7 2 = 4 9 ≡ 1 (mod 4 ), and 7 3 = 3 4 3 ≡ 3 (mod 4 ). Therefore our pattern is similar to finding the first digit of 9 n . If n is odd, then 7 n ≡ 3 (mod 4 ), and if n is even then 7 n ≡ 1 (mod 4 ). In this case n = 6 5 , which is clearly an even number. From here we just work backwards through our problem:
n ≡ 0 (mod 2 ), therefore 7 n ≡ 1 (mod 4 )
n ≡ 1 (mod 4 ), therefore 8 n ≡ 8 (mod 1 0 )
So first digit of 8 7 6 5 is 8 , and finally the 8th term in our pattern for 9 n is 2 1 , our answer.