al-mahed
- 262
- 0
We know that \frac{1}{2} + \frac{1}{4} + \frac{1}{8} + ... \ =1, but your sum above seems to converges to 0.16667 or something like that
al-mahed said:I was trying to calculate the probability of "a given number be prime" and "be a paticular sum of powers of two plus another power of two". What I meant saying "particular sum of powers of two" is "a fixed sum", for example, 5 = 2^0 + 2^2 is the only sum of powers of two for 5, called "particular sum of powers of two" or "q".
al-mahed said:Then in the nth-class what is the probability of x = 2^0 + 2^2 + 2^n be a prime number? The probability of x be prime "times" the probability of 2^0 + 2^2 = 5 be combined with an exponent 2^n. But you are right, this last probability is wrong.
al-mahed said:This should let us conclude, without any formal proof, that all the elements of a "class" (considering a "class" the set of all elements with the same highest exponent) are a sum of the highest exponent of the class and each of the elements of all the precedents "classes" (but not the first element 2^n itself^{[1]}).
al-mahed said:This lead us to ask for the probability of an arrangement of 2-exponents of a prime in the last class, already taking off the greater 2-exponent, be exacly a prime of one of the precedent classes.
al-mahed said:More generally, we could ask for the probability of an arrangement of 2-exponents of a prime in the last class be exacly a prime of one of the precedent classes, tanking off ONE of the any 2-exponents (but not 2^0 obviously). This should consider an arrangement inside the class itself.
al-mahed said:Why did you use sum instead product?
al-mahed said:As a first "look" seems to be an strong suggestion indeed! I'll think about something!
CRGreathouse said:Actually you led me to do at least 60 CPU-hours of work on problems related to A094076, so I'm clearly interested. It's a fascinating sequence; its irregularities lead me to wonder about the appropriateness of standard heuristic arguments in this case. But it is surely reasonable to conjecture that there are infinitely many positive members of the sequence, which implies your conjecture.
If I make enough progress on it I'll send Sloane the updates and post them here as well.
CRGreathouse said:Terminology: I say call 5 = 1 + 4 the unique binary expansion for 5. When you say fixed that makes me wonder what it's fixed in relation to. Are you asking about solutions to n = 1 + 4, where the "5" part above now varies but the "1 + 4" part is fixed? This of course has only one solution, which gives the 1/2^n probability you mentioned -- but what's the point?
CRGreathouse said:You're saying that the numbers between 2^n and 2^(n+1) are just 2^n plus a number from {0, 1, ..., 2^n}. Sure, that's right... but what of it?
CRGreathouse said:I'll admit, I have no idea what you just write here. Let me try to work through it and you can help me, okay??
CRGreathouse said:What you call a k-class I call a (k+1)-bit number. So you're asking for the probability that a (k+1)-bit number, less its most significant bit (2^k), is prime "of one of the precedent classes". The precedent classes would then be those numbers below 2^k. But since the number minus 2^k is always under 2^k, this is just the probability that a (k+1)-bit number, less its most significant bit, is prime.
CRGreathouse said:Alright, I can see how that is relevant. This is the power of two that leaves the smallest remainder when subtracted from the original, making the remaining number most likely to be prime.
CRGreathouse said:This is just a restricted version of your original question, not allowing for the possibility of subtracting a power of two not present in the binary expansion of the number.
CRGreathouse said:I was going to ask you why you used the product. The expected number of occurrences of independent events of probability p1, p2, ..., pn is p1 + p2 + ... + pn.
al-mahed said:the probability of "m" prime numbers beeing all inside the same subgroup with \left(^{n}_{k}\righ) elements is \prod^{\infty}_{n=2}\frac{\left(^{n}_{k}\righ)}{2^{n+m}} where m = \frac{2^n}{ln(2)}*(\frac{n-1}{n^2+n}) and k is the column of the "class", which diverges to zero when n becomes bigger.
husseinshimal said:dear sir,in your post you gave awrong example,namely87.it is no prime number.i would like to refere that some times it worthless to search about how to express prime numbers?
al-mahed said:is there any news about it?
al-mahed said:Every prime number > 3 could be written as a sum of a prime number and a power of two.
CRGreathouse said:I can't remember where we were. Do you mean your original conjecture?
As I commented on http://www.research.att.com/~njas/sequences/A094076 (see my PDF there), 2^k + 3367034409844073483 is composite for all natural numbers k, even though 3367034409844073483 is prime. So the conjecture fails.
2^60 = 1152921504606846976al-mahed said:I used excel and the program primo 3.0.6, I don't know if excel did a mistake in calculating the corret value for 2^60 = 1152921504606850000
3367034409844073483 is a gap of the second conjecture form
al-mahed said:the original conjecture is: all prime numbers can be expressed as q + 2^k, q is prime
but there are some gaps, like 997 and 6659 (997 and 6659 must be expressed as q - 2^k)
so the second form of conjecture is: all prime numbers can be expressed as q - 2^k, q is prime
al-mahed said::) all right, I don't have the best programs as you and Charles, so I must trust in excel and other bullCH... sorry for my 5rd world resources
al-mahed said:but I noticed that compuchip did show that your pdf is wrong because 3367034409844072459 is prime number
CRGreathouse said:And I repeat my question to you. Is your full, final conjecture "for all primes p, there is some positive integer k with either p - 2^k or p + 2^k prime"?
al-mahed said:do know a counter example in both ways? p - 2^k and p + 2^k never prime number?
CRGreathouse said:Not at the moment. I checked for very small ones and didn't find any. Finding primes [not] of the form q - 2^k is challenging: I've expended roughly 100 quadrillion processor cycles on the problem in the last year. (I was planning to send the results, almost complete, to Sloane in a week or two.)
Edit: No counterexamples below 36,000.
Edit: No counterexamples below 41,000.
CRGreathouse said:Okay, so the PDF I linked to shows that there are 64 families of residues mod 18446744073709551615 for which any member + 2^k is composite. By Dirichlet's theorem, there are about n/(143890337947975680 log n) primes in these classes up to n.
Members of http://www.research.att.com/~njas/sequences/A065381 seem to have density 1/80 or so (nonproof: look at the scatterplot).
Combining these two, I expect that there are about n/(11511227035838054400 log n) counterexamples to your conjecture from those 64 families alone. There may be many more not in those residue classes. In particular, it seems likely that there is a counterexample before a billion trillion.
al-mahed said:there is a counterexample before a billion trillion of p - 2^k prime numbers form, right? or you're talking about counterexample of both forms? p - 2^k and p + 2^k?
al-mahed said:can you make an algorithm to search the counterexamples for both forms?
al-mahed said:then should be interesting, if you find such prime number, to see if there is any property for the counterexamples, like: they are twin, palindromic, of the xb + h form, etc, or if it is a totaly random event
al-mahed said:as you have the list of some counterexamples for p - 2^k, I ask you if you can plot some of then here, at least the small ones (10 examples, if possible)
CRGreathouse said:All numbers are of the form xb + h for appropriate x, b, and h. I don't know what you mean by that.
A proven counterexample is unlikely to be a twin prime or a palindrome, since those forms are rare. They are likely to be of 'no special form'.
al-mahed said:we are interested in all primes not of the p = q - 2^k, then we should search for the forms q + 2^k, it is more faster, of course, because it is "limited below" when q = 3
al-mahed said:ok, so backing to the both lists, each of the members of both lists will be "marked" with the total of bits they have, so you only have to compare the primes and the values of 2^n with total of bits added near to the total of bits of your prime number in question
al-mahed said:of course you need a list avaiable of very large primes, is there such list in the sloane research papers?
CRGreathouse said:A list of primes large enough to include the above certified prime would require about 1.4e1724 gigabytes. If a super-advanced hard drive can store a billion TB per gram, a hard drive a googol googol googol googol googol googol googol googol googol googol googol googol googol googol googol googol times the weight of the sun couldn't store the list (at 720 bytes per prime).
al-mahed said:but seriously, I was wondering... we don't know yet what will be the use of this conjecture (if its true) to number theory, specially in twin primes conjecture; you said that will be one of the biggest steps towards a proof in one of your first posts, but how? do you have an heuristcs about it? any ideas of an approach to work on?
Call S the set of primes that can be represented in the form p + 2^k.
The twin prime conjecture (more generally, de Polignac's conjecture or the first Hardy-Littlewood conjecture) implies that S is infinite.
n - 2^1 is divisible by 3
n - 2^2 is divisible by 11
n - 2^3 is divisible by 3
n - 2^4 is divisible by 7
n - 2^5 is divisible by 3
n - 2^6 is divisible by 67
n - 2^7 is divisible by 3
n - 2^8 is divisible by 13
n - 2^9 is divisible by 3
n - 2^10 is divisible by 7
n - 2^11 is divisible by 3
n - 2^12 is divisible by 11
n - 2^13 is divisible by 3
n - 2^14 is divisible by 3637
n - 2^15 is divisible by 3
n - 2^16 is divisible by 7
n - 2^17 is divisible by 3
n - 2^18 is divisible by 279494437
n - 2^19 is divisible by 3
n - 2^20 is divisible by 13
n - 2^21 is divisible by 3
n - 2^22 is divisible by 7
n - 2^23 is divisible by 3
n - 2^24 is divisible by 131
n - 2^25 is divisible by 3
n - 2^26 is divisible by 3559
n - 2^27 is divisible by 3
n - 2^28 is divisible by 7
n - 2^29 is divisible by 3
n - 2^30 is divisible by 6359911
n - 2^31 is divisible by 3
n - 2^32 is divisible by 11
n - 2^33 is divisible by 3
n - 2^34 is divisible by 7
n - 2^35 is divisible by 3
n - 2^36 is divisible by 43669
n - 2^37 is divisible by 3
n - 2^38 is divisible by 151
n - 2^39 is divisible by 3
n - 2^40 is divisible by 7
n - 2^41 is divisible by 3
n - 2^42 is divisible by 11
n - 2^43 is divisible by 3
n - 2^44 is divisible by 13
n - 2^45 is divisible by 3
n - 2^46 is divisible by 7
n - 2^47 is divisible by 3
n - 2^48 is divisible by 3049
n - 2^49 is divisible by 3
n - 2^50 is divisible by 103
n - 2^51 is divisible by 3
n - 2^52 is divisible by 7
n - 2^53 is divisible by 3
n - 2^54 is divisible by 163
n - 2^55 is divisible by 3
n - 2^56 is divisible by 13
n - 2^57 is divisible by 3
n - 2^58 is divisible by 7
n - 2^59 is divisible by 3
n - 2^60 is divisible by 214860817
n - 2^61 is divisible by 3
n - 2^62 is divisible by 11
n - 2^63 is divisible by 3
n - 2^64 is divisible by 7
n - 2^65 is divisible by 3
n - 2^66 is divisible by 653
CRGreathouse said:OK, what I wrote was this:
Your original conjecture, in those terms, is that S = P, the set of the primes. We know that this isn't true, since 127 is not in S.
If we call T the set of primes of the form q - 2^k for q prime, then your second conjecture is that T = P. This is also false, since 3367034409844073483 is not in T.
Your third conjecture is that S\cup T=\mathcal{P}. I haven't found a counterexample to this yet, but I don't think it's true.
So since those seem to not hold, I suggested (way back on page 2) a weakening of conjecture 1. Call it conjecture 1A: S is infinite. Even this hasn't been proved (AFAIK), though it would follow from the twin prime conjecture.
CRGreathouse said:OK, I finally have a counterexample, 84478029997463945033 = n.
n + 2^k is always divisible by one of {2, 3, 5, 17, 257, 641, 65537, 6700417}.
As for n - 2^k, there are only 66 cases to check (since n < 2^67):Code:n - 2^1 is divisible by 3 n - 2^2 is divisible by 11 n - 2^3 is divisible by 3 n - 2^4 is divisible by 7 n - 2^5 is divisible by 3 n - 2^6 is divisible by 67 n - 2^7 is divisible by 3 n - 2^8 is divisible by 13 n - 2^9 is divisible by 3 n - 2^10 is divisible by 7 n - 2^11 is divisible by 3 n - 2^12 is divisible by 11 n - 2^13 is divisible by 3 n - 2^14 is divisible by 3637 n - 2^15 is divisible by 3 n - 2^16 is divisible by 7 n - 2^17 is divisible by 3 n - 2^18 is divisible by 279494437 n - 2^19 is divisible by 3 n - 2^20 is divisible by 13 n - 2^21 is divisible by 3 n - 2^22 is divisible by 7 n - 2^23 is divisible by 3 n - 2^24 is divisible by 131 n - 2^25 is divisible by 3 n - 2^26 is divisible by 3559 n - 2^27 is divisible by 3 n - 2^28 is divisible by 7 n - 2^29 is divisible by 3 n - 2^30 is divisible by 6359911 n - 2^31 is divisible by 3 n - 2^32 is divisible by 11 n - 2^33 is divisible by 3 n - 2^34 is divisible by 7 n - 2^35 is divisible by 3 n - 2^36 is divisible by 43669 n - 2^37 is divisible by 3 n - 2^38 is divisible by 151 n - 2^39 is divisible by 3 n - 2^40 is divisible by 7 n - 2^41 is divisible by 3 n - 2^42 is divisible by 11 n - 2^43 is divisible by 3 n - 2^44 is divisible by 13 n - 2^45 is divisible by 3 n - 2^46 is divisible by 7 n - 2^47 is divisible by 3 n - 2^48 is divisible by 3049 n - 2^49 is divisible by 3 n - 2^50 is divisible by 103 n - 2^51 is divisible by 3 n - 2^52 is divisible by 7 n - 2^53 is divisible by 3 n - 2^54 is divisible by 163 n - 2^55 is divisible by 3 n - 2^56 is divisible by 13 n - 2^57 is divisible by 3 n - 2^58 is divisible by 7 n - 2^59 is divisible by 3 n - 2^60 is divisible by 214860817 n - 2^61 is divisible by 3 n - 2^62 is divisible by 11 n - 2^63 is divisible by 3 n - 2^64 is divisible by 7 n - 2^65 is divisible by 3 n - 2^66 is divisible by 653
Oh, and n is less than a billion trillion, as expected.
al-mahed said:I do believe that S is infinite which ==> twin prime, of course, but its not interesting to find that S is infinite
al-mahed said:it is possible to work with only that PARI program to deal with VERY large prime numbers? like 30 bits numbers?
al-mahed said:nice find! what is interesting is that when k is odd p - 2^k is allways divisible by 3 as the smallest prime number factor, but perhaps this means anything
CRGreathouse said:No, twin prime conjecture => S is infinite. A priori, it's possible that S is infinite but the twin prime conjecture fails.
Pari can easily work with numbers up to hundreds of bits. To prove the primality of numbers with thousands of digits, I use Primo instead.
CRGreathouse said:The least prime factor of p - 2^k for p > 3 always alternates between 3 and another number. This is true because 3 does not divide p.
al-mahed said:there also a kind of pathern to 11 when the values of k goes from +10, +20, +10, +20
and 7 goes from +6, +6, +6, ...
al-mahed said:you mean as p will never be 3 (must be at least 5 because k > 0)??
still not very clear to me
al-mahed said:see http://www.research.att.com/~njas/sequences/A067760
a(n) = least positive k such that (2n+1)+2^k is prime.
COMMENT Does a(1065) exist? (Is 2131+2^k composite for all positive k?)
al-mahed said:you made a nice work here, this is all what matters! congrats, CGR4
al-mahed said:could you state, in a later moment, the exactly densitiy of counterexamples?
you said n/(11511227035838054400 log n) but from where you put 11511227035838054400?