Strong prime pattern, how prove?

  • Context: Graduate 
  • Thread starter Thread starter ktoz
  • Start date Start date
  • Tags Tags
    Prime
Click For Summary

Discussion Overview

The discussion revolves around a proposed pattern related to prime numbers and their representation using sums of consecutive integers. Participants explore the implications of this pattern, particularly focusing on the relationship between certain sums and prime numbers, as well as the potential for proving or deriving further insights from these observations.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant presents a method of representing prime numbers using sums of consecutive integers and notes a pattern where primes greater than 7 do not miss certain terms derived from triangular numbers.
  • Another participant derives a mathematical expression relating to the difference between two triangular numbers and suggests that if a certain condition holds, the result cannot be prime.
  • Some participants express uncertainty about the implications of the pattern for prime number calculation and whether it could lead to a new method for sieving primes.
  • Clarifications are made regarding the notation used, specifically the meaning of "!=" as "not equal" in programming terms.
  • Participants discuss specific numeric examples to illustrate the proposed relationships and conditions for primes, but the validity of the original claim remains under scrutiny.

Areas of Agreement / Disagreement

Participants generally agree that the pattern is interesting and worth exploring further, but there is no consensus on its implications or whether it can lead to a proof or new method for identifying primes. Disagreements exist regarding the interpretation of the mathematical expressions and the conditions under which certain results hold.

Contextual Notes

Some participants express uncertainty about the mathematical steps involved and the conditions necessary for the derived expressions to yield prime numbers. There is also a lack of clarity on the implications of the proposed pattern for prime number theory.

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
 

Similar threads

  • · Replies 24 ·
Replies
24
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 68 ·
3
Replies
68
Views
12K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 13 ·
Replies
13
Views
2K
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K