![]() |
![]() |
#34 | |
Jun 2003
3·5·107 Posts |
![]() Quote:
All numbers that are multiples of 2 can also be excluded. |
|
![]() |
![]() |
![]() |
#35 | |
Jun 2003
3·5·107 Posts |
![]() Quote:
ignore this please. ![]() ![]() |
|
![]() |
![]() |
![]() |
#36 | |
Nov 2005
24·3 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#37 |
Jan 2005
Transdniestr
503 Posts |
![]()
That's not true, Citrix. Mersenne primes can have zeroes in even bases.
Why use Mathematica anyways? All you need is div and mod to get base values. Last fiddled with by grandpascorpion on 2006-03-27 at 01:00 |
![]() |
![]() |
![]() |
#38 | |
Jun 2003
3×5×107 Posts |
![]() Quote:
Can you give an example? Aside from this, I leave it as a puzzle to find the largest base for all Mp that produces a zero. I have the answer to this one. |
|
![]() |
![]() |
![]() |
#39 |
Jan 2005
Transdniestr
503 Posts |
![]()
Not handy. It will be a good exercise for you. Why do you make these silly sweeping statements without a little investigation?
Last fiddled with by grandpascorpion on 2006-03-27 at 01:47 |
![]() |
![]() |
![]() |
#40 |
Jun 2003
3·5·107 Posts |
![]()
Yes you are right
![]() Consider numbers in base 10, which is even. I should think more before posting. Another puzzle (I do not have the answer), which base has the largest number of zero's for M43? |
![]() |
![]() |
![]() |
#41 |
Jan 2005
Transdniestr
503 Posts |
![]()
Chances are that it's three.
Last fiddled with by grandpascorpion on 2006-03-27 at 04:04 |
![]() |
![]() |
![]() |
#42 | |
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
101010100010002 Posts |
![]() Quote:
Assume that all bases will have a roughly even distribution of digits (by this I mean representational characters, e.g. for hexadecimal the 'digits' would be 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F). (Now this won't be true at the higher bases, as many will have a leading 1) Calculate the length (l) of the exponent in base n. Divide l by n (to get an approximation of the number of zeros in the particular base), sum this number for all bases (starting at 3) to M43. The result was: 1,529,591,493 A bit brute force and not exact. Code:
10 Prime = 30402457 : Zeros=0 20 for Base = 3 to Prime 30 L_g = log( Prime ) / log( Base ) 40 N_l = L_g * Prime 50 Digits = ( N_l / Base ) 60 Zeros = Zeros + Digits 70 next Base 80 print Zeros |
|
![]() |
![]() |
![]() |
#43 | |
Sep 2002
Database er0rr
2×33×83 Posts |
![]()
Your code is okay, except the loop for "base" should be up to 2^30402457-1 and not 30402457
![]() ![]() and you could have coded Quote:
A mathematical approach is needed such as given by "patrik" above to get a realististic figure -- I haven't checked "patrik"'s claim but at least your brute force method's expected number of zeroes is less than "patrik"'s mathematically computed expected number of them. ![]() |
|
![]() |
![]() |
![]() |
#44 | ||
Sep 2002
Database er0rr
448210 Posts |
![]()
And shouldn't
Quote:
Quote:
![]() |
||
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
(M48) NEW MERSENNE PRIME! LARGEST PRIME NUMBER DISCOVERED! | dabaichi | News | 571 | 2020-10-26 11:02 |
Yes, Virginia, there _is_ a largest prime number! | R.D. Silverman | Data | 82 | 2013-08-14 15:58 |
New largest prime number found | Prime95 | Miscellaneous Math | 20 | 2008-07-29 16:58 |
get the 15th largest prime number in 3 months | wfgarnett3 | PSearch | 1 | 2004-06-28 20:51 |
New largest prime number??? | McBryce | Lounge | 39 | 2003-08-12 19:35 |