Do Prime Numbers Follow a Pattern?

Click For Summary

Discussion Overview

The discussion revolves around the question of whether prime numbers follow a pattern, specifically examining the polynomial expression n² - n + 41 and its ability to generate prime numbers for positive integers n. Participants explore potential counter-examples and alternative formulations, as well as the implications of these findings in the context of prime number theory.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants suggest that there is no known pattern or rule for calculating prime numbers, yet imply that a counter-example can be found without exhaustive checking.
  • One participant proposes rewriting the polynomial as n(n-1) + 41 to explore its properties, questioning if there is a value of n that makes it non-prime.
  • Another participant mentions checking the polynomial up to n=100 and observing disproportionately many primes, asking for explanations in terms of Legendre symbols.
  • There are discussions about rewriting the expression in different forms, such as n² + (41-n), to analyze its behavior.
  • Some participants express confusion about the implications of certain transformations and the concept of "core equations," seeking clarification on how these relate to the original polynomial.
  • Several participants engage in playful banter about their understanding and progress in solving the problem, indicating a collaborative atmosphere.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the existence of a pattern for prime numbers. Multiple competing views and approaches are presented, with some participants agreeing on certain transformations while others express confusion or seek further clarification.

Contextual Notes

Some statements rely on assumptions about the behavior of polynomials and prime generation, and there are unresolved questions regarding the implications of certain mathematical transformations. The discussion includes references to specific values and conditions that may affect the outcomes but does not resolve these complexities.

Raschedian
Messages
11
Reaction score
5
Hello everyone!

I was going through a simple high school level mathematics book and got to the following question:

n2 - n + 41 is a prime for all positive integers n.

You're supposed to find a counter-example and prove the statement false.

You could of course sit and enter different values for n until you get a composite number and then use that value of n as the counter-example.

But is there a way to find some pattern or rule for prime or composite numbers so that you don't have to do the work manually? This is probably a trivial question but I got curious. Thank you!
 
Mathematics news on Phys.org
There is no known pattern or rule for calculating prime numbers, but with a little thought you should be able to easily find a counter-example without laboriously going through numbers.
 
  • Like
Likes   Reactions: Raschedian
phyzguy said:
There is no known pattern or rule for calculating prime numbers, but with a little thought you should be able to easily find a counter-example without laboriously going through numbers.
Thank you!
 
Raschedian said:
I was going through a simple high school level mathematics book and got to the following question:

n2 - n + 41 is a prime for all positive integers n.

You're supposed to find a counter-example and prove the statement false.
It's pretty easy to find a counterexample for the formula above, if you think about it. A similar formula is the following: n2 + n + 41. This one also appears to generate prime numbers. It's a little harder than the first formula to spot why not all of its values are primes.
 
Uh? Simple proof? Hmm... how come... hmmm... hmmmmm...

Ah! It's the same reason why ##n^2-n+11## also doesn't generate prime numbers! Haha, smart problem!
 
Try writing it as n(n-1) + 41. Is there a vale of n that makes it obvious this is not prime?
 
  • Like
Likes   Reactions: Raschedian and DrClaude
I have once checked one of the polynomials up to ##n=100## and there are indeed disproportionately many primes as results. Does anyone know why? I mean in terms of Legendre symbols or so?
 
phyzguy said:
Try writing it as n(n-1) + 41. Is there a vale of n that makes it obvious this is not prime?

The way I thought of this was rewriting as ##n^2 + (41-n)##
 
  • Like
Likes   Reactions: Spinnor
fbs7 said:
The way I thought of this was rewriting as ##n^2 + (41-n)##
Yes, that's probably the most straightforward way.
 
  • #10
fbs7 said:
The way I thought of this was rewriting as ##n^2 + (41-n)##
That's what I thought also, but @phyzguy's approach allowed me to see the solution to
Mark44 said:
A similar formula is the following: n2 + n + 41. This one also appears to generate prime numbers. It's a little harder than the first formula to spot why not all of its values are primes.
 
  • #11
Hmm... I'm kinda missing the ##n*(n-1)+41##... how does that make it non-prime... hmm... 21*20?... 11*10?...hmm... can't be that... 41*40?... oh.. .41*40+41! hahaha... I got it! :biggrin: ... I'm so slow

It's actually the same thing as ##n*(n+1)+41##, I guess!
 
  • #12
fbs7 said:
Hmm... I'm kinda missing the ##n*(n-1)+41##... how does that make it non-prime... hmm... 21*20?... 11*10?...hmm... can't be that... 41*40?... oh.. .41*40+41! hahaha... I got it! :biggrin: ... I'm so slow

It's actually the same thing as ##n*(n+1)+41##, I guess!
Well, maybe.
As a hint, consider that ##n^2 + n + 41 = n^2 + n + 40 + 1##, where the latter expression can be written as a perfect square trinomial for some value of n.
 
  • #13
10.

(Didn't read the other comments.)
 
  • #14
AdamF said:
10.
?
AdamF said:
(Didn't read the other comments.)
 
  • #15
Mark44 said:
?
Yes, a commentary which reminds me not to write what I think.
AdamF said:
10.

(Didn't read the other comments.)
Maybe someone should tell him that ##10^2\pm 10+41## are both prime.
 
  • Like
Likes   Reactions: pinball1970 and Janosh89
  • #16
I read it as "n^2 - n - 41".

-- The way it's written is more immediate, though.

Reduce the last two terms to zero by setting n equal to the quantity you're subtracting.
In this case, take:
N = 41
 
  • #17
Just let n=41.
 
  • #18
It seems worthwhile checking to see, for a more general expression if you can find a way , a value , to make the expression be even or end in 5, as the simplest cases. Here , if n is odd, the sum is odd, same for ifn is even. Five will not work. Just mentioning as a general technique. Usually going by using the remainder of a well-chosen number should help.
 
  • #19
fresh_42 said:
I have once checked one of the polynomials up to ##n=100## and there are indeed disproportionately many primes as results. Does anyone know why? I mean in terms of Legendre symbols or so?
Mathworld:
http://mathworld.wolfram.com/LuckyNumberofEuler.html
has an explanation in terms of Heegner numbers, but I'm not nearly smart enough to understand it :smile:
 
  • Like
Likes   Reactions: fresh_42 and Janosh89
  • #20
Nor me!
##\rm The~core~equation~for~~~##x2+x+41
##\rm~~~~~~~~~~~~~~~is~~~~~~~~~~~~~~~~##x2+163
this will be divisible by 163 at n=81
of course, at n=40 , i.e. 40 x 41 [x1]
##~~~~~~~~~~~~## and n=41##~~~~~~~## 41 x 42 ##~~ "##
the first composites ( of 41) are produced at and then below the square root of the function ( of x)
 
  • #21
Janosh89 said:
Nor me!
##\rm The~core~equation~for~~~##x2+x+41
##\rm~~~~~~~~~~~~~~~is~~~~~~~~~~~~~~~~##x2+163
What is a "core equation" and why is ##x^2 + 163## a core equation for ##x^2 + x + 41##? Also note that neither ##x^2 + x + 41## nor ##x^2 + 163## is an equation.
Janosh89 said:
this will be divisible by 163 at n=81
What will be divisible by 163? Without some elaboration, it would be difficult to see that ##81^2 + 163 = 81^2 + 2(81) + 1 = (81 + 1)^2##, but what does this have to do with ##x^2 + x + 41##?
Janosh89 said:
of course, at n=40 , i.e. 40 x 41 [x1]
##~~~~~~~~~~~~## and n=41##~~~~~~~## 41 x 42 ##~~ "##
the first composites ( of 41) are produced at and then below the square root of the function ( of x)
The square root of what?
Please try to be clearer in your replies.
 
  • #22
I will post, y=x2+163 in future
##81^2+81+41=163×41##
##y=x^2+x+41##
##∴y=163×41~ when~x=81##
 
Last edited:
  • #23
alan2, back in post 17 gave the obvious answer: "let x= 41"! If x= 41, x^2+ x+ 41= (41)^2+ 41+ 41= 41(4`1+ 41+ 41)= 41(123).
 
  • Like
Likes   Reactions: Greg Bernhardt
  • #24
Yes , it was explicit.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 19 ·
Replies
19
Views
5K
  • · Replies 31 ·
2
Replies
31
Views
4K
  • · Replies 0 ·
Replies
0
Views
274
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K