Re: 3^n and primes



On Jul 5, 12:02 am, quasi <q...@xxxxxxxx> wrote:
On Thu, 05 Jul 2007 01:53:14 -0000, rer <reri...@xxxxxxxxx> wrote:
On Jul 2, 10:50 pm, rer <reri...@xxxxxxxxx> wrote:
This is clearly not efficient, but seems curious. However, I am
unable to explore it further because of rounding errors. I hope
someone out there with a bigger number cruncher is curious, too, and
will see if this just dies out quickly, or has something more too it.

Consider 3^n where n is an integer greater than or equal to 2.

Then let p+q = 3^n, such that p, q are consecutive integers

If 2n+1 evenly divides p or q, then 2n+1 is prime

Someone contacted me directly, also. They noticed that when it fails,
the remainder on the nonfailing part is 1 or 2n. They suggested this
did not seem to be coincidental.

It's not coincidental -- it's an identity.

If 2n+1 divides p, then since q=p+1, it follows that q=1 mod (2n+1).

If 2n+1 divides q, then since p=q-1, if follows that p=2n mod (2n+1).

It doesn't matter whether or not 2n+1 is prime.

Thus, it's of no use in detecting false positives.

quasi


Thanks.

I had chosen 3^n because it was the smallest to test, and I had hoped
that it might work. Obviously, it alone is not sufficient. However,
it was really just the first member of a series of "triples" of the
form (a+b)(a-b)^p-1=c^p. I show some examples here:
http://mysite.verizon.net/~reriker/exppythag-primes.html

Now, as you showed, when p=60, one of the "triples" for 3 is divisible
by 121. However, someone contacted me directly, and they did a test
for some of the other numbers when p=60. Minimally, the triples of 5
and 7 are *not* divisible by 121. So, on this larger test, 121 shows
as not being prime.

Of course, it could fail at 351, etc. And even if it doesn't fail, it
is impractical for small numbers, and may be impractical for large
numbers due to the sizes. I don't think it would be necessary to test
very many values for any particular value of p. But, I would be
curious to see if this larger test also fails quickly or not. So, if
anyone has the inclination, the hardware, and the spare cycles, when
does this one fall over?

Thanks again :-)




.



Relevant Pages

  • Re: 3^n and primes
    ... Now, as you showed, when p=60, one of the "triples" for 3 is divisible ... Of course, it could fail at 351, etc. ... Someone was nice enough to run the following Mathematica code that I ... turned into this file -- Warning! ...
    (sci.math)
  • Re: warm welcome
    ... Hello, Alex! ... A>>> I fail to see how. ... A>>> bigger names than him sit on the bench. ... I still blame Parry & Moores more for the mess we are in with funding than ...
    (uk.sport.football.clubs.liverpool)
  • Re: Drug/Nandralone excuses
    ... Would be great to hear people who fail these tests be a bit bigger ... It's a fair cop. ... He claimed it came from some medication he was taking for ADHD. ...
    (rec.sport.rowing)
  • Re: [PATCH][mm] swsusp: limit image size
    ... with swsusp the image can't be bigger than 1/2 of lowmem (1/2 of RAM ... > to be bigger, we will fail. ... make this parameter userspace-tweakable, so that my userspace app can do ...
    (Linux-Kernel)
  • Re: HP Pavilion Laptop Owners with Bad Power Jacks....
    ... Until the Small pins (And they are quite" smaller" fail).. ... surface mount units and I can see this being a bigger issue soon.. ...
    (comp.sys.hp.hardware)

Quantcast