![]() |
|
|
#12 | |
|
Aug 2007
Canberra, Australia
1000012 Posts |
Quote:
If You'll find his full proof there. Empirical evidence suggests that Lehmer's effective bound, Last fiddled with by Jim White on 2007-09-02 at 00:25 |
|
|
|
|
|
|
#13 |
|
"Robert Gerbicz"
Oct 2005
Hungary
22·7·53 Posts |
|
|
|
|
|
|
#14 |
|
Jun 2003
2×7×113 Posts |
Jim,
Out of curiosity. The only application I can think of right now, is to study Pell equations and the largest possible solution for each D. From what I understand, the prime values have the first solution as a large number, whereas smooth D values have smaller first solutions. But there has been no work done on the largest solution, if the first solution is known. May be some pell equations have infinite solutions? Any thoughts?
|
|
|
|
|
|
#15 |
|
Aug 2007
Canberra, Australia
3310 Posts |
Regarding Citrix's question, if all variables are strictly positive integers then we know
Now, going the other way, we may also find a particular solution An example (based on a smooth pair): For each distinct square If we call any |
|
|
|
|
|
#16 |
|
Aug 2007
Canberra, Australia
3·11 Posts |
By existing known bounds I meant only those which are themselves already established, which, strictly speaking, is limited to those resulting from complete and accurate applications of Lehmer's method (or of Størmer's, but that's very much slower).
At the moment we have only two ways to confirm any individual bound (and for any given number of primes it must be individually computed). That's by either following Lehmer's recipe correctly, and completely, or by getting a provably correct (and usefully close) bound from above. The latter can perhaps be obtained from "Bakersfield", the general area of Baker's Theorems regarding linear forms in logarithms used to approximate solutions to Diophantine equations. For Our particular problem is not one that the Bakersfield mob have really thought much about, other than to observe in passing that it is theoretically applicable ... I am corresponding with somebody knowledgable in the area and hope to lerrn more Meanwhile, Lehmer's results, meanwhile, which showed all 869 smooth pairs for the 13 primes up to 41, can be read as gospel, and are easily verified/reproduced. The sequence of greatest values currently on show at OEIS is, presumably, also verified. Myself, I have only performed such a strictly correct enumeration for the 17 primes up to 59, for which the incremental run alone was starting to take hours (see above posts). I assume the providers of the values for p to 97 have followed the recipe strictly, and have been able to devote sufficient time (and perhaps a more powerful machine) to the computation ... ... or they know something which I don't, but apparently should! ![]() My figures for the primes beyond 97, which go up to p = 149 are not gospel, but are "almost certainly" correct. They can't yet be claimed correct, as they were performed by a "stripped-down" Lehmer method that does very much less work. This method is new and as yet unsupported by a theorem, but I have high hopes that will come in due course. I will describe this in a post soon, but meanwhile, those of you who have some form of working code for the Lehmer method can guess what I'm doing through a simple, but revealing, experiment: When your program reports each smooth-pair index value, It will be sufficient to run it just for the Lehmer example (p <= 41), where the periods for all equations involved range up to 16k or so, and the maximum period encountered for a producer is ... ?? A caveat is necessary - even if a firm analytical result in these terms is obtainable, all it gives us is another finite increment in the number of primes (say around 10) that might be "doable" in reasonable time. It opens a door, but only to a larger room, not to the open! But there is cause for optimism in the nature of the periodicity properties which might well lead to an evantual escape from the tyrrany of running times exponential in terms of One suspects that some combinatorial-number-theoretical piece of the jigsaw is just there waiting to be found ... ... this could be intuitive, or perhaps one simply hopes (desperately enough)that it turns out to be the case!
Last fiddled with by Jim White on 2007-09-02 at 05:24 |
|
|
|
|
|
#17 |
|
Aug 2007
Canberra, Australia
3×11 Posts |
Another thought regarding Citrix's question: if you take the fundamental solution (which is just that involving the smallest possible pair of integers x,y), you can then apply either of the recurrence formulae above to generate the infinite number of pairs that also satisfy the same equation.
This I think will be found to be just the same process that lets you generate an infinite family of related but distinct Pythagorean triplets from any one starting case .... Each solution has common divisors with the fundamental one, in particular The prime divisors in any solution that do not divide So Lehmer's bound on the range of multiple solutions that should be checked can most probably be tightened if expressed in the number of prime divisors of the solution in question, by comparison with the number of primes available (unused) that could possibly appear in solutions as extrinsic divisors ... well, I think so, anyway But as I said, no complexity gain is likely to arise from a tightening of this particular bound. Multiple solutions are more probable when the Last fiddled with by Jim White on 2007-09-02 at 06:02 |
|
|
|
|
|
#18 | |
|
"Robert Gerbicz"
Oct 2005
Hungary
22×7×53 Posts |
Quote:
This program takes only 4 seconds for N=17 so p=59 on my slow computer ( 1.7 GHz Celeron ). So probably it is faster than your program. I've assumed for this that S'(p[N])<2^(3*N+1) is true ( p[1]=2,p[2]=3,p[3]=5... are the primes ). Note that this is true for the known solutions. |
|
|
|
|
|
|
#19 |
|
Aug 2007
Canberra, Australia
3×11 Posts |
Thanks Robert. That sounds good, I'll have a good look at it ...
|
|
|
|
|
|
#20 |
|
Aug 2007
Canberra, Australia
418 Posts |
Very nice work, Robert. That certainly runs faster than my initial hack ... I'll make an updated version of that timing chart above with a plot for your program running times. I have spare suits - you can be diamonds!
A description of your approach would be welcome! Your smoothness testing, for example, looks interesting. Mine doesn't do any gcd calls, for a start! |
|
|
|
|
|
#21 |
|
Aug 2007
Canberra, Australia
2116 Posts |
(a little later)
I'm beginning to understand (and appreciate) it a little better now ... you've implemented a Bounded version of the Lehmer method? If the bound is known, then the CF development process can take an early exit when the convergents get too big ... We know that this will in fact be the case far more often than not, so the time saving over regular (unbounded) Lehmer method, is substantial ... all we need is a reasonably good bound ... Now I see how it works, I will try an experiment with it! Cheers Last fiddled with by Jim White on 2007-09-03 at 10:28 Reason: Obsessive Computational Disorder |
|
|
|
|
|
#22 | |
|
"Robert Gerbicz"
Oct 2005
Hungary
22×7×53 Posts |
Quote:
In fact half of the numbers are divisible by p[N]^2, the other half of them are divisible by only p[N], the reason for this that we've to guarantee that a or a-1 is divisible by p[N]. There are 2^(N-1) such numbers, and after testing 2*D I'm testing 4*D, but only if D!=1, otherwise it is a square number, and the Pell equation is trivial. That part of the code is a little crazy, but not time critical, for example the following code do the same job, in almost the same time ( it isn't faster or slower by 1% ): Code:
mpz_set_ui(D,2);
for(i=1;i<N-1;i++) {
if(J&1) {
mpz_mul_ui(D,D,primes[i]);
}
J>>=1;
}
if(J&1) {
mpz_mul_ui(D,D,primes[N-1]);
}
else {
mpz_mul_ui(D,D,primes[N-1]*primes[N-1]);
}
The time critical part is in solving Pell equations. For this I've used a well known approach to compute the continued fraction of sqrt(D) using only integer arithmetic, see: http://en.wikipedia.org/wiki/Methods...tion_expansion This is the same in my program d[],a[],m[]. For this I'm using also exact division for calculating d[n]. The other parts of the code is what you've already described. Note that I'm using LARGEST where LARGEST=p[n]=2*a-1. But maximizing a or LARGEST is the same. Last fiddled with by R. Gerbicz on 2007-09-03 at 10:54 |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| B1 and B2 in P-1 method | Miszka | Math | 13 | 2013-12-27 20:23 |
| New Method | Unregistered | Miscellaneous Math | 14 | 2013-05-24 10:55 |
| Lucas-Lehmer | Dougal | Information & Answers | 9 | 2009-02-06 10:25 |
| Emma Lehmer | R.D. Silverman | Information & Answers | 1 | 2007-08-28 06:20 |
| Størmer's theorem | grandpascorpion | Factoring | 0 | 2006-09-10 04:59 |