![]() |
![]() |
#1 |
Aug 2002
100001011010102 Posts |
![]() |
![]() |
![]() |
![]() |
#2 | |
"Ed Hall"
Dec 2009
Adirondack Mtns
147016 Posts |
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#3 |
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
32×1,117 Posts |
![]()
But it isn't!
It is as if for the last 10 digits of the penultimate factor of M991 you would submit, yafu 'factor(2^991-1)'. But what [B]are[/B] those last ten digits, eh? |
![]() |
![]() |
![]() |
#4 |
Aug 2002
216A16 Posts |
![]()
Here is an easy way to get the answer: http://www.wolframalpha.com/input/?i...29%29%29%29%29
But, it didn't show us how to get the answer. We spent a lot of time working on this today without much progress. http://mathhelpforum.com/number-theo...-exponent.html http://mymathforum.com/number-theory...st-digits.html http://math.stackexchange.com/questi...-digits-of-999 |
![]() |
![]() |
![]() |
#5 |
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
11·389 Posts |
![]()
I can't say I fully grok the math behind it, but I found a solution by calculating the following in PARI/GP:
Code:
Mod(8,10^10)^9
Mod(7,10^10)^lift(%)
Mod(6,10^10)^lift(%)
Mod(5,10^10)^lift(%)
Mod(4,10^10)^lift(%)
Mod(3,10^10)^lift(%)
Mod(2,10^10)^lift(%)
Results in Mod(8170340352, 10000000000), or ...8170340352
Or as C#
var n = BigInteger.Pow(8, 9);
var mod = BigInteger.Pow(10, 10);
for (var b = 7; b >= 2; b--)
n = BigInteger.ModPow(b, n, mod);
Console.WriteLine(n.ToString("D10"));
And just for good measure, Python:
n = 8**9
for b in range(7, 1, -1):
n = pow(b, n, 10**10)
print("{:010d}".format(n))
Last fiddled with by TimSorbet on 2014-10-03 at 01:13 |
![]() |
![]() |
![]() |
#6 |
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
32·1,117 Posts |
![]()
It happens to be the correct answer, but with generally incorrect solution.
The period of power function (mod n) is not n but eulerphi(n). All but the last step needs to be done mod eulerphi(10^10), not 10^10. |
![]() |
![]() |
![]() |
#7 |
Aug 2006
5,987 Posts |
![]()
Don't the moduli change at each step?
|
![]() |
![]() |
![]() |
#8 |
"Forget I exist"
Jul 2009
Dartmouth NS
2×3×23×61 Posts |
![]()
I tried to follow the easiest route I could in my head but it didn't get me far enough even after seeing the answers here:
2 to odd exponent : ends in 2 or 8 exponent is 3 to a power that's 0 mod 4: the exponent on the 2 ends in 1; this along with 0 mod 3 leads to 21,51,81 etc being a list of possible exponents before other powers are taken into effect and then I was going to go from there but I'm too slow at trying things like this. Last fiddled with by science_man_88 on 2014-10-03 at 13:23 |
![]() |
![]() |
![]() |
#9 |
Aug 2002
2×7×13×47 Posts |
![]() |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
October 2017 | Xyzzy | Puzzles | 9 | 2017-11-07 15:18 |
October 2016 | R. Gerbicz | Puzzles | 10 | 2016-11-01 13:35 |
October 2015 | LaurV | Puzzles | 3 | 2015-11-02 15:22 |
13 October is approaching! | Joe O | Prime Sierpinski Project | 1 | 2010-10-09 06:12 |
4.0 to 4.5 quake expected in San Francisco area October 20-24 2006. | lukethomas | Science & Technology | 18 | 2006-11-13 03:51 |