![]() |
|
|
#12 | |
|
Dec 2003
Hopefully Near M48
33368 Posts |
Quote:
n! ~ 10^(n+0.5LOGn + 0.3991 - 0.4343n), where the LOG is base 10 This means that the closes natural number factorial to the largest known prime is: (1,125,242)! ~ 10^6320427 ~ 2^20996044 |
|
|
|
|
|
|
#13 |
|
Dec 2003
Hopefully Near M48
6DE16 Posts |
Of course, even this method has its limit. My calculator overflows at roughly n = 1.02*10^98.
|
|
|
|
|
|
#14 | |
|
Bronze Medalist
Jan 2004
Mumbai,India
22·33·19 Posts |
Quote:
Thank one and all for sending in very helpful pointers towards the eventual solution.Since michael posed his poblem I did not realise the immensity that factorials could represent! I tend to agree with rogue that ((9!)!)! > 9^9^9 and not vice versa However the main issue is not to dispute over symbollism as to how best to express the largest number with only 3 digits. Madachy emphasises the word 'only' by italics. This clearly means no functions, no signs. The main problem is how by a simple desk calculator and elementary number theory the last 10 digits of the number 9^9^9=9^387420489 could be worked out. The method should not only be theoretically possible but practically also within finite time. The last 10 digits are 2,627,177,289. I am at a loss to work this out. Perhaps as suggested by ET this could be solved by modular arithmetic. mfgoode. |
|
|
|
|
|
|
#15 | |
|
Aug 2002
Portland, OR USA
2·137 Posts |
Quote:
I filled pages with equations, and built complex spreadsheet tables. And rewrote them, and rebuilt them. Finally I hit on a line of reasoning that made sense, and actually worked: 9 = 10 - 1 92 = (10 - 1)2 -> use binomial expansion -> = [1,-2, 1] = 102 - 2*10 + 1 = 81 99 = (10 - 1)9 = [1,-9, 36,-84, 126,-126, 84,-36, 9,-1] -> lets check it ... carry digits -> [1,-9+3, 6-8+1,-4+2-1, 6-2,-6+8, 4-3,-6, 9,-1] = [1,-6,-1,-3, 4, 2, 1,-6, 9,-1] subtract ---> [10-7,10-2,10-3, 4, 2, 0,10-6, 8,10-1] = 387420489 Let n = 99 = 387420489 Then 99[sup]9[/sup] = 9n = (10 - 1)n = [nCn, ..., -nC10, nC9, ..., -nC2, nC1, -nC0] And finally, 9n mod 1010 = [nC9 mod 1010, nC8 mod 1010, ..., -nC2 mod 1010, 387420489, -1] Now we can use modular arithmetic to calculate each nCi*10i and add: Code:
0 = -1 1 = 3874204890 2 = -5478931600 3 = 9038964000 4 = -4541260000 5 = 3422200000 6 = -3908000000 7 = 6520000000 8 = -3300000000 9 = 7000000000 = 2627177289
|
|
|
|
|
|
|
#16 | |
|
Nov 2003
3·5·11 Posts |
Quote:
|
|
|
|
|
|
|
#17 | |
|
Bronze Medalist
Jan 2004
Mumbai,India
22·33·19 Posts |
Quote:
Maybeso you are A genious! The first time I am veiwing a solution that ma kes sense and very elegantly excuted too. Please await my next post to crack out a much larger number which author Madachy gives the answer too. Your theory and method we will be able to test out. Mfgoode |
|
|
|
|
|
|
#18 | |
|
Bronze Medalist
Jan 2004
Mumbai,India
22·33·19 Posts |
Quote:
Thank you for pointing the way! I will certainly follow up the example.The term [sup ] seems to be a standard. Kindly tell me what it means tho I have an inkling but am not sure. Mfgoode. |
|
|
|
|
|
|
#19 | |
|
Aug 2002
Portland, OR USA
2·137 Posts |
Quote:
nfortino, Actually, I used my PC calculator to verify that the process was workable. It will go up to 2108 or 1031 before showing 1.622...813e+32. Since my method involves multiplying 2+3 8 digit #'s, 4 7, 5 6, ..., and 9 2 digit #'s, it provides some precision advantage over the successive squaring method. (Yes, I knew about that, I just wanted to solve the puzzle ... because it was there.) To get the answers I posted, I used zzmath in XL. Without that, I would have to use two 5 digit columns to represent each number. Which means a two step multiply, plus the mod-with-carry. Duplicating that on a desk calculator would be difficult. A calculator with two memories might make it possible - but then the squaring method would still be better. |
|
|
|
|
|
|
#20 |
|
Aug 2002
Portland, OR USA
27410 Posts |
mfgoode,
I finally got it that some browsers can't show superscript and subscript. It only took me a day. ![]() I guess my post would get pretty mangled if the [ sup] and [ sub] were broken. So here is the first part using x^n and n_C_k formats: 9 = 10 - 1 9^2 = (10 - 1)^2 -> use binomial expansion -> = [1,-2, 1] = 10^2 - 2*10 + 1 = 81 9^9 = (10 - 1)^9 = [1,-9, 36,-84, 126,-126, 84,-36, 9,-1] -> lets check it ... carry digits -> [1,-9+3, 6-8+1,-4+2-1, 6-2,-6+8, 4-3,-6, 9,-1] = [1,-6,-1,-3, 4, 2, 1,-6, 9,-1] subtract ---> [10-7,10-2,10-3, 4, 2, 0,10-6, 8,10-1] = 387420489 Let n = 9^9 = 387420489 Then 9^9^9 = 9^n = (10 - 1)^n = [n_C_n, ..., -n_C_10, n_C_9, ..., -n_C_2, n_C_1, -n_C_0] And finally, 9^n mod 10^10 = [n_C_9 mod 10^10, n_C_8 mod 10^10, ..., -n_C_2 mod 10^10, 387420489, -1] Now we can use modular arithmetic to calculate each n_C_i*10^i and add: ... |
|
|
|
|
|
#21 |
|
Aug 2002
Portland, OR USA
2×137 Posts |
How to use a desk calculator to find the last 10 digits of 9^9^9.
n = 9^9 = 387420489, so we'll be working with [387420481..387420489]. I use fractions instead of /100000. I subtract leading digits to preserve trailing digits. {123456} shows the display, bold shows our goal. d8 = 8 digits, d7 = 7 digits, ...
Last fiddled with by Maybeso on 2004-02-23 at 02:57 |
|
|
|
|
|
#22 |
|
Mar 2003
34 Posts |
has anyone ever heard about RSA? This is a simple modular power.
The fifty last digits: 9^(9^9) mod 10^50 = 74036682906190174923494324178799359681422627177289 |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Soap Box clutterbot - What's on your mind? Squeak up! | only_human | Soap Box | 106 | 2020-11-08 12:44 |
| Mind checking out my program I wrote? | CadeBrown | Computer Science & Computational Number Theory | 35 | 2016-04-12 14:55 |
| CUDA Install errors...HELP...never mind | petrw1 | GPU Computing | 2 | 2016-03-06 13:39 |
| Number of distinct prime factors of a Double Mersenne number | aketilander | Operazione Doppi Mersennes | 1 | 2012-11-09 21:16 |
| Georgia on my mind | davieddy | Soap Box | 5 | 2008-08-18 22:30 |