mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Puzzles

Reply
 
Thread Tools
Old 2006-07-20, 15:03   #34
alpertron
 
alpertron's Avatar
 
Aug 2002
Buenos Aires, Argentina

136610 Posts
Default

Quote:
Originally Posted by R.D. Silverman
While you got the right answer, you ignored the hint. There is a
MUCH easier way to do this.
Well, the derivation above was easy.

It is more interesting to find the last 7 digits of 7^(7^(7^(7^(7^(7^7))))) which is not too difficult.
alpertron is offline   Reply With Quote
Old 2006-07-20, 16:42   #35
alpertron
 
alpertron's Avatar
 
Aug 2002
Buenos Aires, Argentina

55616 Posts
Default

Quote:
Originally Posted by alpertron
It is more interesting to find the last 7 digits of 7^(7^(7^(7^(7^(7^7))))) which is not too difficult.
Let x = 7^(7^(7^(7^(7^(7^7)))))
Let a = 7^(7^(7^(7^(7^7))))
Let b = 7^(7^(7^(7^7)))
Let c = 7^(7^(7^7))
Let d = 7^(7^7)
Let e = 7^7

x = 7^a = 7^(a mod phi(10000000)) (mod 10000000)
x = 7^a = 7^(a mod 4000000) (mod 10000000)

a = 7^b = 7^(b mod phi(4000000)) (mod 4000000)
a = 7^b = 7^(b mod 1600000) (mod 4000000)

b = 7^c = 7^(c mod phi(1600000)) (mod 1600000)
b = 7^c = 7^(c mod 640000) (mod 1600000)

c = 7^d = 7^(d mod phi(640000)) (mod 640000)
c = 7^d = 7^(d mod 256000) (mod 640000)

d = 7^e = 7^(e mod phi(256000)) (mod 256000)
d = 7^e = 7^(e mod 102400) (mod 256000)

Working backwards:

e = 7^7 = 4343 (mod 102400)
d = 7^4343 = 244343 (mod 256000)
c = 7^244343 = 372343 (mod 640000)
b = 7^372343 = 372343 (mod 1600000)
a = 7^372343 = 1172343 (mod 4000000)
x = 7^1172343 = 5172343 (mod 10000000)

So the last 7 digits of the power is 5172343.
alpertron is offline   Reply With Quote
Reply

Thread Tools


All times are UTC. The time now is 05:18.


Fri Aug 6 05:18:20 UTC 2021 up 13 days, 23:47, 1 user, load averages: 2.90, 2.36, 2.38

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.