Two Related Primes

What is the sum of all possible primes p p such that p 2 + 8 p^2+8 is also a prime?


The answer is 3.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

8 solutions

Himanshu Arora
Jul 10, 2014

If p p is a prime it can either leave remainder of 1 or 2 when divided by 3, (or 0 in case the number is 3 itself). Now if it leaves remainder 1 then ( p 2 + 8 ) 3 0 (p^{2} + 8) | 3 \equiv 0 and if it leaves remainder 2, again ( p 2 + 8 ) 3 0 (p^{2} + 8) | 3 \equiv 0 . (Check?)

Hence the only value possible for p p is 3 \boxed{3} . Answer

Totally :S

Satvik Golechha - 6 years, 11 months ago

Nice solution.

Abhay Hegde - 4 years, 4 months ago

Nice solution.

Aditi Kumari - 3 years, 5 months ago

super easy going and brilliant solution.

Justin Tang - 2 years, 7 months ago

Did the same

Vimal Khetan - 1 year, 2 months ago
Curtis Clement
Feb 16, 2015

p ± 1 m o d ( 6 ) p 2 + 8 3 m o d ( 6 ) p\equiv\pm1 mod(6) \Rightarrow\ p^2 +8\equiv3mod(6) This means that for both p {p} and p 2 p^{2} + 8 to be prime, then: p ± 1 m o d ( 6 ) p\neq\pm1 mod(6) a n d p h a s t o b e o d d and \ p \ has \ to \ be \ odd p = 3 a n d p 2 + 8 = 17 i s t h e o n l y s o l u t i o n \therefore\ p = 3 \ and \ p^2 + 8 = 17 \ is \ the \ only \ solution

Can you explain how you chose p=±1mod6

Luke Xu - 4 years, 9 months ago

Log in to reply

Every prime number is either of the form 6q+1 or 6q-1

Ankur Verma - 4 years, 1 month ago

How you choose p^2 +8=3mod(6)

Akash Bailwad - 3 years, 7 months ago

Every prime greater than 3 has the form 6k-1 or 6k+1, the other forms (6k, 6k+2, 6k+3, 6k+4) are not prime. 6k+5 is the same as 6k+1. I actually thought about using this fact but was too lazy to carry It out in my head because squaring it leaves me with a 7, should have used 3k+1 and 3k+2 instead because then p^2+8 would have given 9 or 12.. much simpler.

M. Zeidan - 2 years, 2 months ago
Danny He
Jul 12, 2014

p P , p 5 , p ± 1 ( m o d 6 ) \forall p \in \mathbb{P}, \; p \geq 5, \; p \equiv \pm 1 \pmod{6}

\therefore if { p , p 2 + 8 } P \left\{p, p^2+8 \right\} \subset \mathbb{P}

Then p 2 + 8 ± 1 ( m o d 6 ) p^2 + 8 \equiv \pm 1 \pmod{6}

p 2 9 \Rightarrow p^2 \equiv -9 or 7 ( m o d 6 ) 3 -7 \pmod{6} \equiv -3 or 1 ( m o d 6 ) -1\pmod{6}

However, p ± 1 ( m o d 6 ) p 2 1 ( m o d 6 ) p \equiv \pm 1 \pmod{6} \Rightarrow p^2 \equiv 1 \pmod{6}

This is a contradiction and thus we see that there are no such primes for p 5 p \geq 5 , so we need only check p = 2 p = 2 and p = 3 p =3

p = 2 2 ( p 2 + 8 ) ( p 2 + 8 ) P p =2 \Rightarrow 2| \left(p^2 +8 \right) \Rightarrow \left(p^2+8\right) \notin \mathbb{P}

p = 3 p 2 + 8 = 17 P p = 3 \Rightarrow p^2 + 8 = 17 \in \mathbb{P}

Therefore, the sum of all values of p p that satisfy the equations is 3 3

Nice approach!

Prokash Shakkhar - 4 years, 5 months ago

p 2 + 8 = p 2 1 + 9 = ( p 1 ) ( p + 1 ) + 9 p^2 + 8 = p^2 - 1 + 9 = (p - 1)(p + 1) + 9 Considering this equation, if p p is not divisible by 3 3 , then either p 1 p - 1 or p + 1 p + 1 will be, since they are three consecutive numbers, and p 2 + 8 p^2 + 8 will not be prime. If p = 3 p = 3 , then p 2 + 8 = 17 p^2 + 8 = 17 , so 3 3 is the only solution.

Zakir Dakua
Nov 5, 2015

Let's consider

  1. p = 3m-1 for m = any integer, then p 2 + 8 p^{2}+8 = 9 m 2 6 m + 9 9m^{2}-6m+9 = 3 ( 3 m 2 2 m + 3 ) 3(3m^{2}-2m+3) which is dividable by 3
  2. p = 3m-2 for m = any integer, then p 2 + 8 p^{2}+8 = 9 m 2 12 m + 12 9m^{2}-12m+12 = 3 ( 3 m 2 4 m + 4 ) 3(3m^{2}-4m+4 ) which is also dividable by 3
  3. p = 3m for m = any integer, then p 2 + 8 p^{2}+8 = 9 m 2 + 8 9m^{2} + 8 which might be prime but p = 3m is prime only when m = 1

Sp, p = 3 only solution.

Using Fermat's little theorem: (note that this holds true when p is relatively prime to 3)

p 2 p^2 = 1 ( mod 3 ), therefore p 2 p^2 + 8 = 9 = 0 ( mod 3 ).

This tells us that any number that is relatively prime to 3 (which includes every prime other than 3 itself) is divisible by 3.

This means the only prime we need to test is 3. 3 2 3^2 + 8 = 17, which is prime. This tells us that the only number that works is 3 itself

Every prime p 3 p\neq3 is ± 1 ( mod 3 ) \pm1\ (\text{mod}\ 3) . ( CRUX MOVE )

This implies p 2 1 ( mod 3 ) p^2\equiv1\ (\text{mod}\ 3) and so p 2 + 8 9 0 ( mod 3 ) p^2+8\equiv9\equiv0\ (\text{mod}\ 3) The only remaining case is p = 3 p=3 , which satisfies the condition. Thus, the answer is 3 \boxed3 .

Apart from number 3, that is the correct answer, for any other possible prime with the expression p^2 + 8, that result should never be equal to a multiple of 3.

Every prime number, apart from number 3 itself, is either of the form 3x + 1 or the form 3x - 1. If we substitute our original "p" by these two expressions, we get that new formed primes should be of the value 9x^2 + 6x + 9 or 9x^2 - 6x + 9, which is always going to be a multiple of 3, and therefore not prime.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...