Strong prime pattern, how prove?

  • Thread starter Thread starter ktoz
  • Start date Start date
  • Tags Tags
    Prime
ktoz
Messages
170
Reaction score
12
Hi

I was playing around with ways to store numbers more compactly in bases other than 2 and, just for giggles, I tried a "base" of consecutive positive integers that add up to "n". When I applied it to primes, like so

• 2 = 2
1 2 = 3
• 2 3 = 5
1 2 • 4 = 7
1 2 3 • 5 = 11
1 • 3 4 5 = 13
1 2 3 • 5 6 = 17
1 • 3 4 5 6 = 19
1 2 3 4 • 6 7 = 23
1 2 3 4 5 6 • 8 = 29
1 2 3 4 • 6 7 8 = 31
1 2 3 4 5 6 7 • 9 = 37
1 2 3 • 5 6 7 8 9 = 41
1 • 3 4 5 6 7 8 9 = 43
1 2 3 4 5 6 7 • 9 10 = 47
1 • 3 4 5 6 7 8 9 10 = 53
1 2 3 4 5 6 • 8 9 10 11 = 59
1 2 3 4 • 6 7 8 9 10 11 = 61
1 2 3 4 5 6 7 8 9 10 • 12 = 67
1 2 3 4 5 6 • 8 9 10 11 12 = 71
1 2 3 4 • 6 7 8 9 10 11 12 = 73
1 2 3 4 5 6 7 8 9 10 11 • 13 = 79
1 2 3 4 5 6 7 • 9 10 11 12 13 = 83
1 • 3 4 5 6 7 8 9 10 11 12 13 = 89
1 2 3 4 5 6 7 • 9 10 11 12 13 14 = 97
1 2 3 • 5 6 7 8 9 10 11 12 13 14 = 101
1 • 3 4 5 6 7 8 9 10 11 12 13 14 = 103
1 2 3 4 5 6 7 8 9 10 11 12 • 14 15 = 107
1 2 3 4 5 6 7 8 9 10 • 12 13 14 15 = 109
1 2 3 4 5 6 • 8 9 10 11 12 13 14 15 = 113
1 2 3 4 5 6 7 8 • 10 11 12 13 14 15 16 = 127
1 2 3 4 • 6 7 8 9 10 11 12 13 14 15 16 = 131
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 • 17 = 137
1 2 3 4 5 6 7 8 9 10 11 12 13 • 15 16 17 = 139
1 2 3 • 5 6 7 8 9 10 11 12 13 14 15 16 17 = 149
1 • 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 = 151
1 2 3 4 5 6 7 8 9 10 11 12 13 • 15 16 17 18 = 157
1 2 3 4 5 6 7 • 9 10 11 12 13 14 15 16 17 18 = 163
1 2 3 • 5 6 7 8 9 10 11 12 13 14 15 16 17 18 = 167
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 • 18 19 = 173
1 2 3 4 5 6 7 8 9 10 • 12 13 14 15 16 17 18 19 = 179
1 2 3 4 5 6 7 8 • 10 11 12 13 14 15 16 17 18 19 = 181
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 • 20 = 191
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 • 18 19 20 = 193
1 2 3 4 5 6 7 8 9 10 11 12 • 14 15 16 17 18 19 20 = 197
1 2 3 4 5 6 7 8 9 10 • 12 13 14 15 16 17 18 19 20 = 199
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 • 21 = 211
1 2 3 4 5 6 7 • 9 10 11 12 13 14 15 16 17 18 19 20 21 = 223
1 2 3 • 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 = 227
1 • 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 = 229

A potentially interesting pattern emerged. If you look down the columns, you notice that for primes greater than 7 (m = 4) there are no primes missing their 3, 6, 10, 15, 21 terms. 3, 6, 10 etc are exact sums of n(n + 1) / 2

Given:
m, n element of positive integers
p element of primes

Where:
m > 4
m > b
a = m(m+1) / 2
b = n(n + 1) / 2

Then:
a - b != p

I wrote a quick and dirty program and tested this for all primes up to p(300,000) and it seems to hold. How would I go about proving this? It's been years since I did proofs so I don't even know where to start.

Any help appreciated

P.S. is there some command that allows the display of nice neat tables within a post?
 
Last edited:
Mathematics news on Phys.org
n(n+1)/2 - k(k+1)/2 = (n+k+1)(n-k)/2

if n-k > 2 this can't be a prime number. Right now I don't feel in the mood to work the exact conditions for it to be prime when n-k=2 or n-k=1.
 
AlephZero said:
n(n+1)/2 - k(k+1)/2 = (n+k+1)(n-k)/2

if n-k > 2 this can't be a prime number. Right now I don't feel in the mood to work the exact conditions for it to be prime when n-k=2 or n-k=1.

Nice. Thanks!

Not sure whether this pattern offers the slightest benefit for calculating or seiving primes (p(>2) - odd integer is also never prime) but it seemed interesting that all primes between p(5) and p(300,000) contain every k where k = m(m + 1) / 2. Like there might be a prime calculating trick in there somewhere.
 
AlephZero said:
n(n+1)/2 - k(k+1)/2 = (n+k+1)(n-k)/2

if n-k > 2 this can't be a prime number. Right now I don't feel in the mood to work the exact conditions for it to be prime when n-k=2 or n-k=1.

ktoz said:
Nice. Thanks!

Not sure whether this pattern offers the slightest benefit for calculating or seiving primes (p(>2) - odd integer is also never prime) but it seemed interesting that all primes between p(5) and p(300,000) contain every k where k = m(m + 1) / 2. Like there might be a prime calculating trick in there somewhere.

Hi ktoz & yes nice one-liner, AlephZero. Well, with n-k=1, the expression just reduces to n, so the condition is that n itself must be prime. Similarly for n-k=2, 2n-1 must be prime.

ktoz, well spotted! I agree it's an interesting pattern, but I don't know enough to know if you're on to anything. I understood the pattern, and that all those primes seem to contain every k, where k=m(m+1)/2. However, I didn't see where your "a-b !=p" comes from - is the "!" a typo? Can you give one numeric example showing a, b, k, m, n and p.

Cheers

X=7
 
X=7 said:
I understood the pattern, and that all those primes seem to contain every k, where k=m(m+1)/2. However, I didn't see where your "a-b !=p" comes from - is the "!" a typo? Can you give one numeric example showing a, b, k, m, n and p.

!= is the C expression for "not equal"

p = 71
m = ceil( (sqrt(8p + 1) - 1) / 2)
k = {1, 2, 3, ... } < ceil( (sqrt(8m + 1) - 1) / 2)

a = m(m + 1) / 2 = 78
b = k(k + 1) / 2 = {1, 3, 6, 10, ...}

a - b = 72 != p(n)
 
ktoz said:
!= is the C expression for "not equal"

p = 71
m = ceil( (sqrt(8p + 1) - 1) / 2)
k = {1, 2, 3, ... } < ceil( (sqrt(8m + 1) - 1) / 2)

a = m(m + 1) / 2 = 78
b = k(k + 1) / 2 = {1, 3, 6, 10, ...}

a - b = 72 != p(n)
Thanks ktoz - I get it now. Heh, I'm not a programmer & got my maths degree more than 20 years ago so rather rusty! AlephZero's rearrangement shows the condition for the difference to be prime is that n or 2n-1 would have to be prime. Having a look at the first "easier" case, n prime, would be the way I would try to go.

Good luck.

X=7
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
I'm interested to know whether the equation $$1 = 2 - \frac{1}{2 - \frac{1}{2 - \cdots}}$$ is true or not. It can be shown easily that if the continued fraction converges, it cannot converge to anything else than 1. It seems that if the continued fraction converges, the convergence is very slow. The apparent slowness of the convergence makes it difficult to estimate the presence of true convergence numerically. At the moment I don't know whether this converges or not.
Back
Top