mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Puzzles (https://www.mersenneforum.org/forumdisplay.php?f=18)
-   -   PR 4 # 32 (https://www.mersenneforum.org/showthread.php?t=6120)

Wacky 2006-07-14 16:56

PR 4 # 32
 
What is the rightmost digit of 7[sup]7[sup]7[/sup][/sup] ?

xilman 2006-07-14 17:08

[QUOTE=Wacky]What is the rightmost digit of 7[sup]7[sup]7[/sup][/sup] ?[/QUOTE]
[spoiler]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

[/spoiler]

Citrix 2006-07-14 17:11

[spoiler] 3. To get answer, all you have to do is calculate mod 10. [/spoiler]

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

axn 2006-07-14 17:25

Whoa there!

Order(7,10) = 4

Therefor 7^(7^7) = 7^(Mod(7^7,4)) (mod 10).

Wacky 2006-07-14 21:09

Paul,

"No cigar". Try again.

fetofs 2006-07-14 23:19

[QUOTE=Wacky]What is the rightmost digit of 7[sup]7[sup]7[/sup][/sup] ?[/QUOTE]

[spoiler]7[/spoiler]

[spoiler]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)[/spoiler]

Xyzzy 2006-07-15 00:31

[spoiler]3?[/spoiler]

Wacky 2006-07-15 01:00

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)

Xyzzy 2006-07-15 10:20

[quote=Wacky]Please justify why you choose a particular one / (exclude some of them)[/quote] [spoiler]$ echo '7^7^7' | bc | tail --bytes=2
3[/spoiler]

:whistle:

R. Gerbicz 2006-07-15 11:18

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.

Richard Cameron 2006-07-15 13:33

extra credit?
 
since 7^4 = 2401 and so ==1 mod 100, the penultimate digit must be 4.


All times are UTC. The time now is 22:19.

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