mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Puzzles

Reply
 
Thread Tools
Old 2006-07-14, 16:56   #1
Wacky
 
Wacky's Avatar
 
Jun 2003
The Texas Hill Country

32×112 Posts
Default PR 4 # 32

What is the rightmost digit of 77[sup]7[/sup] ?
Wacky is offline   Reply With Quote
Old 2006-07-14, 17:08   #2
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

3·5·719 Posts
Default

Quote:
Originally Posted by Wacky
What is the rightmost digit of 77[sup]7[/sup] ?
1

Proof:

7^2 = 49 == -1 mod 10
Therefore, 7^6 = (7^2)^3 == (-1)^3 == -1 mod 10

Therefore 7^7 == -3 == 4 mod 10.

Therefore 7^(7^7) == 7^4 == (7^2)^2 == (-1)^2 == 1 mod 10

xilman is offline   Reply With Quote
Old 2006-07-14, 17:11   #3
Citrix
 
Citrix's Avatar
 
Jun 2003

2·7·113 Posts
Default

3. To get answer, all you have to do is calculate mod 10.

I was going to be the first to answer this, the 300 sec posting time limit let Xilman answer first.

Last fiddled with by Citrix on 2006-07-14 at 17:12
Citrix is offline   Reply With Quote
Old 2006-07-14, 17:25   #4
axn
 
axn's Avatar
 
Jun 2003

32×5×113 Posts
Default

Whoa there!

Order(7,10) = 4

Therefor 7^(7^7) = 7^(Mod(7^7,4)) (mod 10).
axn is offline   Reply With Quote
Old 2006-07-14, 21:09   #5
Wacky
 
Wacky's Avatar
 
Jun 2003
The Texas Hill Country

32·112 Posts
Default

Paul,

"No cigar". Try again.
Wacky is offline   Reply With Quote
Old 2006-07-14, 23:19   #6
fetofs
 
fetofs's Avatar
 
Aug 2005
Brazil

2·181 Posts
Default

Quote:
Originally Posted by Wacky
What is the rightmost digit of 77[sup]7[/sup] ?
7

So, we have 7*7*7*7 (49 times) . Since a*b (mod 10) = (a mod 10)*(b mod 10), we can reduce the multipliers as we go through. This is a sequence, but we must find it first. We can know for sure it's smaller than 11! :)
Exponent = 2 mod 4 7*7 = 9 (mod 10)
Exponent = 3 mod 4 9*7 = 3 (mod 10).
Exponent = 0 mod 4 3 * 7 = 1 (mod 10)
Exponent = 1 mod 4 1 * 7 = 7 (mod 10).
We have returned to our original point. Therefore every exponent that is -2 mod 4 equals 9 mod 10, and so on. Since 49 == 1 (mod 4), the result is congruent to 7 (mod 10)
fetofs is offline   Reply With Quote
Old 2006-07-15, 00:31   #7
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

203516 Posts
Default

3?
Xyzzy is offline   Reply With Quote
Old 2006-07-15, 01:00   #8
Wacky
 
Wacky's Avatar
 
Jun 2003
The Texas Hill Country

32×112 Posts
Default

I have ten possibilities:
0, 1, 2, 3, 4, 5, 6, 7, 8, and 9

Please justify why you choose a particular one / (exclude some of them)
Wacky is offline   Reply With Quote
Old 2006-07-15, 10:20   #9
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

5×17×97 Posts
Default

Quote:
Originally Posted by Wacky
Please justify why you choose a particular one / (exclude some of them)
$ echo '7^7^7' | bc | tail --bytes=2
3


Xyzzy is offline   Reply With Quote
Old 2006-07-15, 11:18   #10
R. Gerbicz
 
R. Gerbicz's Avatar
 
"Robert Gerbicz"
Oct 2005
Hungary

2×743 Posts
Default

Yes, the answer is 3.

7^7=823543=4*k+3, so
7^(7^7)=7^823543=7^(4*k+3)=343*2401^k==3*1==3 mod 10.
R. Gerbicz is offline   Reply With Quote
Old 2006-07-15, 13:33   #11
Richard Cameron
 
Richard Cameron's Avatar
 
Mar 2005

2528 Posts
Default extra credit?

since 7^4 = 2401 and so ==1 mod 100, the penultimate digit must be 4.
Richard Cameron is offline   Reply With Quote
Reply

Thread Tools


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


Fri Aug 6 05:18:25 UTC 2021 up 13 days, 23:47, 1 user, load averages: 2.74, 2.34, 2.37

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.