So Many Exponents!

9 8 7 6 5 \Huge {\color{#3D99F6}9}^{{\color{#20A900}8}^{{\color{#D61F06}7}^{{\color{#624F41}6} ^{\color{magenta}5}}}}

What are the last two digits when this integer fully expanded out?


The answer is 21.

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.

14 solutions

Garrett Clarke
Jun 12, 2015

9 2 n 9^{2n} will always end in a 1 1 , while 9 2 n + 1 9^{2n+1} will always end in a 9 9 (for example, 9 4 = 656 1 9^4 = 656\underline{1} and 9 5 = 5904 9 9^5 = 5904\underline{9} . As this pattern works for the first digit of 9 n 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^n :

9 1 = 09 9^1 = \underline{09}

9 2 = 81 9^2 = \underline{81}

9 3 = 7 29 9^3 = 7\underline{29}

9 4 = 65 61 9^4 = 65\underline{61}

9 5 = 590 49 9^5 = 590\underline{49}

9 6 = 5314 41 9^6 = 5314\underline{41}

9 7 = 47829 69 9^7 = 47829\underline{69}

9 8 = 430467 21 9^8 = 430467\underline{21}

9 9 = 3874204 89 9^9 = 3874204\underline{89}

9 10 = 34867844 01 9^{10} = 34867844\underline{01}

9 11 = 313810596 09 9^{11} = 313810596\underline{09}

As you can see, the pattern starts over again at 9^11, therefore our pattern is of length 10 10 . This means that all we have to do is find the first digit of 8 7 6 5 8^{7^{6^{5}}} and we'll have our answer (another way to phrase this is that we need to find some n n such that 8 7 6 5 n 8^{7^{6^{5}}} ≡ n (mod 10 10 ) To do that we need to first find the pattern for the first digit of 8 n 8^n . 8 1 = 8 8^1 = \underline{8} , 8 2 = 6 4 8^2 = 6\underline{4} , 8 3 = 51 2 8^3 = 51\underline{2} , 8 4 = 409 6 8^4 = 409\underline{6} , and 8 5 = 3276 8 8^5 = 3276\underline{8} , making our pattern is of length 4 4 . This means we need to find a number n n where 7 6 5 n 7^{6^{5}} ≡ n (mod 4 4 ). Finding the remainder when dividing by 4 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 7^1 = 7 ≡ 3 (mod 4 4 ), 7 2 = 49 1 7^2 = 49 ≡ 1 (mod 4 4 ), and 7 3 = 343 3 7^3 = 343 ≡ 3 (mod 4 4 ). Therefore our pattern is similar to finding the first digit of 9 n 9^n . If n n is odd, then 7 n 3 7^n ≡ 3 (mod 4 4 ), and if n n is even then 7 n 1 7^n ≡ 1 (mod 4 4 ). In this case n = 6 5 n = 6^5 , which is clearly an even number. From here we just work backwards through our problem:

n 0 n ≡ 0 (mod 2 2 ), therefore 7 n 1 7^n ≡ 1 (mod 4 4 )

n 1 n ≡ 1 (mod 4 4 ), therefore 8 n 8 8^n ≡ 8 (mod 10 10 )

So first digit of 8 7 6 5 8^{7^{6^{5}}} is 8 8 , and finally the 8th term in our pattern for 9 n 9^n is 21 \boxed{21} , our answer.

Moderator note:

Note that you don't actually need to keep all the digits in of 9 n 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 10 ) n 1 10 n ( m o d 100 ) (-9)^n =(1-10)^n \equiv 1-10n (\mod 100) and so on.

Peter Byers - 5 years, 2 months ago

This is basically the same solution I used!

D C - 4 years, 10 months ago

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.

A Former Brilliant Member - 3 years, 4 months ago

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.


K P - 2 years, 3 months ago

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

Pop Wong - 1 year, 6 months ago

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

Corrado Gioannini - 4 years, 7 months ago

Log in to reply

That's what I got!

it is exercise for Fifteen student in Vietnam

Vũ An - 5 years, 12 months ago

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

Shyam Agarwal - 5 years, 4 months ago

Log in to reply

It is exercise for my friend when he is on fifth grade -_-

Kevin InterBlack - 5 years, 2 months ago

@Corrado Gioannini I guess you are calculating (((9^8)^7)^6)^5 and not 9^(8^(7^(6^5))).

Shubhamkar Ayare - 4 years, 4 months ago
Kristian Thulin
Apr 6, 2016

I did this without any number theory whatsoever, just playing around with numbers.

First observation: The last two digits of 9 n 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 8^{7^{6^5}} to know which one to choose.

The last digit of 8 n 8^n is repeating like this:

8-4-2-6

Now we need the reminder of 7 6 5 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 7^n is repeating like this:

07-49-43-01

Observe that 6 5 = 2 5 × 3 5 6^5 = 2^5 \times 3^5 is divisible by 4. Therefor 7 6 5 7^{6^5} ends with 01. From this we know that 8 7 6 5 8^{7^{6^5}} ends with 8, and finally 9 8 7 6 5 9^{8^{7^{6^5}}} ends with 21.

That's all number theory. =]

Matt P - 4 years, 4 months ago

Niceee aaaa

Dustin Jourdan - 4 years, 2 months ago

Siaoo gongg

Dustin Jourdan - 4 years, 2 months ago

Cjom beng a

Dustin Jourdan - 4 years, 2 months ago
Daniel Xiang
Mar 26, 2018

By Euler's theorm

9 8 7 6 5 9 8 7 6 5 m o d ϕ ( 100 ) ( m o d 100 ) 9^{8^{7^{6^{5}}}} \equiv 9^{8^{7^{6^{5}}} \mod \phi(100)} \pmod{100}

Note that ϕ ( 100 ) = 100 ( 1 1 2 ) ( 1 1 5 ) = 40 \phi(100)=100 \left(1-\frac{1}{2} \right) \left(1-\frac{1}{5} \right)=40

Now we find the remainder of 8 7 6 5 8^{7^{6^{5}}} devided by 40 40

Since, gcd ( 8 7 6 5 , 40 ) 1 \gcd(8^{7^{6^{5}}}, 40)\ne 1 , we break 40 40 into 5 × 8 5 \times 8

Trivially,

8 7 6 5 0 ( m o d 8 ) 8^{7^{6^{5}}} \equiv 0 \pmod{8}

and, again, by Euler's theorm

8 7 6 5 8 7 6 5 m o d 4 ( m o d 5 ) 8^{7^{6^{5}}} \equiv 8^{7^{6^{5}} \mod 4} \pmod{5}

since ϕ ( 5 ) = 4 \phi(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 \begin{aligned}7^{6^{5}} &\equiv 7^{6^{5} \mod 2} \pmod{4}\\ &\equiv 7^0 \\&\equiv 1 \end{aligned}

Substituding this, we have

8 7 6 5 8 3 ( m o d 5 ) 8^{7^{6^{5}}} \equiv 8 \equiv 3 \pmod{5}

By finding the first positive integer x x such that

x 0 ( m o d 8 ) x 3 ( m o d 5 ) x\equiv 0 \pmod{8} \\ x\equiv 3 \pmod{5}

we get

8 7 6 5 8 ( m o d 40 ) 8^{7^{6^{5}}} \equiv 8 \pmod{40}

hence,

9 8 7 6 5 9 8 ( m o d 100 ) 656 1 2 6 1 2 3721 21 \begin{aligned}9^{8^{7^{6^{5}}}} &\equiv 9^8 \pmod{100}\\&\equiv 6561^2 \\&\equiv 61^2 \\&\equiv 3721\\&\equiv\boxed{ 21}\end{aligned}

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.

Pierre Carrette - 3 years, 2 months ago

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 a^{b^c}= a^{\left( b^c\right)}\ne \left(a^b\right)^c = a^{bc}

For example,

4 3 2 = 4 9 = 262144 4 3 2 4 2 × 3 = 4096 \begin{aligned}4^{3^2} &= 4^9 = 262144 \\ 4^{3^2}&\ne 4^{2\times 3}=4096\end{aligned}

Daniel Xiang - 3 years, 2 months ago

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.

bhumika sharma - 5 years, 10 months ago

Log in to reply

how is this possible

Tanvir Mitul - 5 years, 4 months ago

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.

puneet sharma - 3 years, 7 months ago

Log in to reply

yes it is true

I Love Brilliant - 11 months, 1 week ago
Sswag SSwagf
Sep 23, 2016

this problem it's an modular arithmetic problem, we can easily take

6 5 = 7776 6^{5}=7776

7 n m o d 100 = n m o d 4 7^{n} \mod 100 = n \mod 4 so the last two digits (that is all we need would be 01 )

Observing the cycle in 8 n 8^{n} we can induce that it is congruent to 8 1 8^{1} and finnaly conclude doing the same process in 9 n 9^n we can observe that it would had the same last digits as 9 8 9^{8} that are 6721

Nicolai Hinsch
Jul 28, 2017

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.

Pavan Kartik
Jun 12, 2020

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

K T
Feb 15, 2019

Consecutive powers of 9 are 9 , 81 , 29 , 61 , 49 , 41 , 69 , 21 , 89 , 1 , . . . ( m o d 100 ) 9,81,29,61,49,41,69,21,89,1,... \pmod{100} , repeating every 10th power. So we need to know what is 8 7 6 5 ( m o d 10 ) 8^{7^{6^{5}}} \pmod{10} .

Consecutive powers of 8 have end digit 8 , 4 , 2 , 6 , 8 , . . . 8,4,2,6,8,... repeating every 4th power, so it matters what 7 6 5 ( m o d 4 ) 7^{6^{5}} \pmod{4} is.

Consecutive powers of 7 ( m o d 4 ) \pmod{4} are 3 , 1 , 3 , 1 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 ) 7^{6^{5}}=1 \pmod{4}

8 7 6 5 = 8 ( m o d 10 ) 8^{7^{6^{5}}}=8 \pmod{10}

so 9 8 7 6 5 = 21 ( m o d 100 ) 9^{8^{7^{6^{5}}}} =21 \pmod{100}

William Allen
Feb 9, 2019

9 k 1 ( m o d 10 ) 9^{k}\equiv 1\pmod{10} for even k, and 9 k 9 ( m o d 10 ) 9^{k}\equiv 9\pmod{10} for odd k.

Now observing the pattern in the last 2 digits of powers of 9: 9 1 09 9 2 81 9 3 29 9 4 61 9 5 49 9 6 41 \begin{array}{|c|c|} \hline 9^{1} & 09 \\ \hline 9^{2} & 81 \\ \hline 9^{3} & 29 \\ \hline 9^{4} & 61 \\ \hline 9^{5} & 49 \\ \hline 9^{6} & 41 \\ \hline \end{array}

Starting from 9 2 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 0 and then starts the cycle again, there are 5 things in the cycle.

Now to check if 8 7 6 5 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 ) 5\equiv 1\pmod{2} \implies 7^{6^5}\equiv 1\pmod{2} \\ 8^{7^{6^5}}\equiv 0\pmod{2} So the power is even meaning the last digit is a 1 1 and we are looking at the even power cycle.

8 7 6 5 4 ( m o d 5 ) 8^{7^{6^5}}\equiv 4\pmod{5} So counting down to the 4th entry in our even powers pattern means the last two digits of 9 8 7 6 5 21 ( m o d 100 ) 9^{8^{7^{6^5}}}\equiv 21\pmod{100}

Last two digits are 21 \boxed{21}

Ebelle Lobe Morel
Aug 28, 2018

I went with Euler's little theorem. So I had :

  • 6^5 = 7776
  • In finding the last two digits of the whole number, I just needed the last digit of 7^7776.
  • Luckily, 7776 = 4x1944, so for the last digit, 7^7776 (mod10) = (7^4)^1944(mod10) = 1
  • I then found myself with 9^8^1. Calculating it gave me the last two digits.
Shubhamkar Ayare
Jan 17, 2017

Given the pattern of last two digits in the powers of 9: 9 1 = 09 9 2 = 81 9 3 = . . . 29 9 4 = . . . 61 9 5 = . . . 49 9 6 = . . . 41 9 7 = . . . 69 9 8 = . . . 21 9 9 = . . . 89 9 10 = . . . 01 . . . \begin{aligned} 9^1 &= 09 \\ 9^2 &= 81 \\ 9^3 &= ...29 \\ 9^4 &= ...61 \\ 9^5 &= ...49 \\ 9^6 &= ...41 \\ 9^7 &= ...69 \\ 9^8 &= ...21 \\ 9^9 &= ...89 \\ 9^{10} &= ...01 \\ ... \end{aligned}

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 9^2 or 9 8 9^8 . There, you can use 2 attempts at maximum to get the write answer!

Kamal Lohia
Nov 27, 2015

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}.

Charlz Charlizard
Jun 12, 2015

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..

Moderator note:

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

christoffer santos - 5 years, 12 months ago

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

Calvin Lin Staff - 5 years, 7 months ago
Refath Bari
Jan 4, 2018

Simple; Take 9 8 7 6 5 ( m o d , 100 ) = 21 { 9 }^{ { 8 }^{ { 7 }^{ { 6 }^{ 5 } } } }(mod,100)=21

Your solution is completely useless, you're just rephrasing the question and giving the final answer.

Lee Isaac - 3 years, 1 month ago

Useless solution

Satyajeet Machale - 2 years, 3 months ago

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

Deep state of denial Burgert - 1 year, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...