The Power of 5

Find the last three digits of 5 5 5 5 . \LARGE 5^{5^{5^{5}}}.

(Enter as a three-digit number, hundreds place first.)


The answer is 125.

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.

3 solutions

Seth Christman
Dec 1, 2016

Lets take a look at the first few powers of 5 m o d 1000 5\mod1000 to establish its pattern.

005 , 025 , 125 , 625 , 125 , 625 , 125 , 625 , 005, 025, 125, 625, \dots125, \dots625, \dots125, \dots625, \dots

We are only looking at the last 3 digits because the smallest 4 digit number 1000 5 = 5000 m o d 1000 = 0 1000*5=5000\mod1000=0 . Meaning no digit 4 or more can affect the last 3 digits.

Checking what happens after 625 625 , 625 5 = 3125 m o d 1000 = 125 625*5=3125\mod1000=125 . Meaning every number following a 625 \dots625 will always end in 125 125 . And we can see that 125 5 = 625 125*5=625 follows the same logic.

Since the ending digits always alternate between 125 125 and 625 625 , we just need to establish the pattern. Since 125 125 happens on the 3rd power, and 625 625 appears on the 4th power, and these endings always alternate, ignoring 5 1 5^1 and 5 2 5^2 , the pattern is odd powers end in 125 125 and even powers end in 625 625 .

So, since all powers of 5 5 are odd, this "simplifies" to 5 o d d 5^{odd} meaning it ends in 125 125 .

Sure.

We only need to take a look at the last 3 digits of any given number since the 4th digit on will alter only the 4th digit and on. Since we started with 5 5 and always multiply by 5 5 , we can see the last digit is always 5 5 . Now the second number is 25 25 .

Multiplying by 5 5 gives us 25 5 = 20 5 + 5 5 = 100 + 25 = 125 25*5=20*5+5*5=100+25=125 .

The reason for the expanded way is to show that the 20 20 part doesn't interfere with the last 2 digits, meaning the last 2 digits will always be 25 25 (since only 5 5 5*5 effects the them). Now that we have established that the last 2 digits are always 25 25 , we look at to what effects the 3rd digit.

125 5 = 100 5 + 25 5 = 500 + 125 = 625 125*5=100*5+25*5=500+125=625 . No conclusion at this point

625 5 = 600 5 + 25 5 = 3000 + 125 = 3125 m o d 1000 = 125 625*5=600*5+25*5=3000+125=3125\mod1000=125 . When the digit is 6 6 , only the last 2 digits effect the 3 (since 6 5 = 30 6*5=30 ). And since 25 25 is always present in the last 2 digits, 125 125 will always be present in the number. And when the number ends in 125 125 we have already seen that 125 5 = 625 125*5=625 .

This shows that the last 3 digits alternate between 125 125 and 625 625 . Since 125 125 appears at the 3rd power, and 625 625 at the 4th power, alternating will show that all odd powers end in 125 125 and all even powers end in 625 625 .

Does that work as a proof? I don't have a fancy way of showing it other than a logic walkthrough. Please correct anything you find error or fallible.

Seth Christman - 4 years, 6 months ago

You're very close to what I had in mind - could you prove that the pattern continues (you just say it "seems to be")?

Jason Dyer Staff - 4 years, 6 months ago

Can you incorporate this into the answer? (It doesn't need to be everything you just wrote, since you've got your thought process too, but pulling out enough that it's clear the only thing affecting the next three digits are the previous three digits.)

Jason Dyer Staff - 4 years, 6 months ago

Added to the answer in a more concise manner

Seth Christman - 4 years, 6 months ago
John Wroblewski
Dec 19, 2016

We have that 5 5 = 3125 5^5 = 3125 , which is congruent to 125 m o d 1000 125 \mod 1000 . Now we need 12 5 3125 m o d 1000 125^{3125} \mod 1000 , which is congruent to ( 12 5 4 ) 5 125 m o d 1000 (125^4)^5 * 125 \mod 1000 . 12 5 4 = 244140625 125^4 = 244140625 , which is then congruent to 625 m o d 1000 625 \mod 1000 . Then we have 62 5 5 125 m o d 1000 625^5 *125 \mod 1000 , again is congruent to ( 62 5 2 ) 2 625 125 m o d 1000 (625^2)^2 * 625 *125 \mod 1000 . 62 5 2 625^2 is congruent to 625 m o d 1000 625 \mod 1000 . Then we finally need to solve 625 125 m o d 1000 625 *125 \mod 1000 , which is 78125 m o d 1000 78125 \mod 1000 . It is then evident that the last three digits is "125". This method uses the fact that representatives of a single equivalence class of the integers modulo n are equivalent when doing computations in the quotient group Z/nZ.

5^5^5^5 = 10^10^2184.125722088846 = ....203125

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...