Re: More on triangle numbers and primes!



> If this is true, there could be an easy way to check for primality for
> large integers.
> First all odd number checks will have the first two
> terms in common whether prime or composite, so
> really you could drop the first two checks.
> The first is obvious, it is just
> (n*(n+1))/2 - (n-1*(n))/2 where (n) is the first result.
> The second is also obvious, it is just n­_c = ceiling
> (n/2) then (n_c*(n_c+1))/2 - (n_c-2*(n_c-1))/2 =
> original n.
> So you only have to search the remaining half to see if
> any resulting (n) is present.
> If there is, then n is composite,if not,n is prime.
> Dan

I'm still looking at this...

Okay, n_c = ceiling (n/2) . For a convenient algebra (or perhaps for a less
convenient algebra) and with odd integer n the ceiling of (n/2) is ((n + 1)
/ 2)...


First case:


n(n + 1) - m(m + 1)
------------------- =? n
2


When m = (n - 1)


n(n + 1) - (n - 1)(n)
--------------------- = n
2



n(n + 1 - n + 1)
---------------- = n
2


and


n(2)
----
2 = n as true and yet true for all n.

___________________________________________

Second case:


a(a + 1) - b(b + 1)
------------------- =? n
2



When a = ((n + 1)/ 2) and b = (((n + 1)/ 2) - 2)



((n + 1)/ 2)*((n + 1)/ 2) + 1)-((n + 1)/ 2) - 2)*(((n + 1)/ 2) - 1)
---------------------------------------------------------
2



((n + 1)/ 2)^2 + ((n + 1)/ 2) - ((n + 1)/ 2)^2 + 3((n + 1)/ 2) - 2
----------------------------------------------------------
2



4((n + 1)/ 2) - 2
----------------- = n
2




2(n + 1) - 2 2n
------------ -- = n
2 = 2


And yeah that is really just an algebra exercise...
_____________________________________


Well, I have the proofs yet to study and also the graphical characteristics
of the triangle...

The questions are:

Is is proven that there are no solutions between this first case and the
second case ? (The original poster says calls the second case the second
solution and says that it is obvious.)

Is there anything in the logic of the proofs that allow a calculation as to
where a third solution will be (within a range) ?


.



Relevant Pages

  • Re: one final question
    ... out a simple XOR with P which is a random odd number excluding those with 5 ... as the least significant digit it's a simple xor encryption. ... primality so that it will execute in the same time for every session rather ...
    (sci.crypt)
  • Re: How do body parts evolve?
    ... thing missing is a commment from the original poster, ... Strikes me as odd neither to ask further, nor to thank for a sufficient ...
    (talk.origins)
  • Re: Machholz trajectory
    ... >> outside our orbit, and that at this time of year, the Earth's north pole ... >> is pointing in that same direction, it doesn't seem that odd. ... The original poster asked if it was odd; I responded that it wasn't odd. ...
    (sci.astro.amateur)
  • Re: Cat Genders
    ... the other newsgroup that the message was posted to. ... Which is odd, because once ... it's on your newserver, the original poster can't remove it, can they? ... In loving memory of Frank and Nikki. ...
    (rec.pets.cats.anecdotes)
  • Re: Previously Compiled Packages
    ... original poster is "worried about nothing", ... to believe there was something odd about the compile. ... It looks like the config files in the source directory are still in tact, but I worry that they show a different machine name than the current one. ...
    (comp.os.linux.misc)