Problem with prime and composite numbers

Click For Summary

Homework Help Overview

The discussion revolves around proving that for any prime number p greater than or equal to 5, the expression p^2 + 2 is composite. The subject area includes number theory, specifically focusing on properties of prime and composite numbers.

Discussion Character

  • Exploratory, Assumption checking, Conceptual clarification

Approaches and Questions Raised

  • The original poster attempts to establish that any prime p >= 5 can be expressed in the forms 6k + 1 or 6k + 5, using modular arithmetic to analyze remainders when divided by 6. Some participants question the justification of this step and explore the implications of remainders when dividing by 6.

Discussion Status

Participants are actively engaging with the problem, exploring different representations of prime numbers and discussing the implications of those forms on the expression p^2 + 2. There is a suggestion that demonstrating the composite nature of the resulting expressions could be a viable approach, but no consensus has been reached.

Contextual Notes

Participants note that primes greater than 5 cannot yield certain remainders when divided by 6, as those would lead to factors of 2 or 3, which are not prime. This reasoning is under discussion but remains to be fully justified.

canningdevin
Messages
3
Reaction score
0
If p >= 5 is prime, prove that p^2 + 2 is composite.

So i noticed if we divide any p >= 5 by 6 we only get remainders of 1 or 5.

6 | 5 , r = 5
6 | 7 , r = 1
6 | 11, r = 5
6 | 13, r = 1
6 | 17, r = 5 and so on

so for my proof i am saying for p >= 5, p = 6k + 1 or 6k = 5

so for the first , p^2 + 2 = (6k+1)^2 + 2 = 36k^2 +12k + 3 = 3(12k^2 + 4k + 1)

and similarly, p^2 + 2 = (6k+5)^2 + 2 = 36k^2 + 60k + 27 = 3(12k^2 + 20k + 3)

so both of these are composite so that is great.

But is there a way i can justify that any prime p >= 5 can be written as 6k + 1 or 6k + 5?

I mean i can go through a ton of examples and the remainders are only 1 or 5 but examples don't mean anything.

Can someone help me justify that first step.
 
Last edited:
Physics news on Phys.org
I just thought of something can someone tell me if this is correct. for p primes p >=5 we can only get remainders 1 or 5 when dividing by 6 because if we get 2 3 4 we see what happens

6k + 2 = 2(3k +1)
6k + 3 = 3(2k +1)
6k + 4 = 2(2k + 2) and none of these can be prime because they have factors of either 2 or 3.
Is this correct?
 
Clearly, every prime number greater than 5 can be written in the form 3k+1 or 3k+2. Then all that you need to demonstrate is that (3k+1)2+2 and (3k+2)2+2 are composite. This is similar to your line of thinking.
 
ah ok, thank you very much
 

Similar threads

Replies
3
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
30
Views
3K
  • · Replies 15 ·
Replies
15
Views
5K
  • · Replies 2 ·
Replies
2
Views
1K