Ask your own question, for FREE!
Mathematics 13 Online
Parth (parthkohli):

A great question with a great solution.

Parth (parthkohli):

What is the sum of all positive prime numbers such that \(n\) such that \(n^2 + 2\) is also a prime?

OpenStudy (rational):

\[(6k\pm 1)^2 +2 = 3(\text{stuff})\] so we only need to check primes less than \(6\)

Parth (parthkohli):

bye

OpenStudy (rational):

Another long but nice way to work this is to consider using quadratic reciprocity law

OpenStudy (mimi_x3):

where did u get 6k+/- 1

Parth (parthkohli):

all primes can be expressed in that form

Parth (parthkohli):

> 3

OpenStudy (rational):

Every prime is one of the forms 6k+1 or 6k-1

OpenStudy (mimi_x3):

o ok

OpenStudy (mimi_x3):

why

OpenStudy (rational):

consider all numbers in mod 6

OpenStudy (rational):

By euclid division algorithm, every integer can be represented in one of the forms `6k, 6k+1, 6k+2, 6k+3, 6k+4, 6k+5`

OpenStudy (mimi_x3):

yes

Parth (parthkohli):

eliminate

OpenStudy (rational):

2 | 6k 2 | 6k+2 3 | 6k+3 2 | 6k+4

OpenStudy (mimi_x3):

okay so 6k+5 same as remainder -1

OpenStudy (mimi_x3):

hmm

OpenStudy (mimi_x3):

what would this do for this

OpenStudy (rational):

so we have established that a prime can only be of form 6k+1 or 6k-1

OpenStudy (mimi_x3):

oh nvm

OpenStudy (mimi_x3):

ok i got it now

OpenStudy (mimi_x3):

i see so there are other forms like this from different mods

OpenStudy (callisto):

But why mod 6?

Parth (parthkohli):

it's a well-known result. the \(\pm 1\) is a great tool.

OpenStudy (mimi_x3):

we need that 1^2 out

OpenStudy (mimi_x3):

so we know its a factor of 3

OpenStudy (mimi_x3):

wonder if there is a proof to show this only happens in mod 6

OpenStudy (callisto):

I don't quite understand that question. "such that n such that n^2+2 is also a prime" ???

OpenStudy (mimi_x3):

actually ya that is kinda broken english lol

OpenStudy (callisto):

Such that both n and n^2+2 are primes?

OpenStudy (mimi_x3):

yes

Parth (parthkohli):

Sorry, I meant this: What is the sum of all primes \(n\) such that \(n^2 + 2\) is also a prime?

OpenStudy (mimi_x3):

still doesnt make sense fully

OpenStudy (mimi_x3):

are u saying n is a sum of primes?

OpenStudy (mimi_x3):

all the primes?

OpenStudy (callisto):

We need to find the sum of all primes n such that both n and n^2+2 are primes.

OpenStudy (mimi_x3):

can i jut see where u got the question actually

OpenStudy (mimi_x3):

p1^2+2 + p2^2+2 + p3^2+2... so we are trying to see the prime numbers where this sum is still prime right

OpenStudy (mimi_x3):

and all the numbers greater than 6 we say are already factors of 3

OpenStudy (mimi_x3):

saw*

Parth (parthkohli):

You just want to find the sum of the prime numbers that satisfy this statement.

Parth (parthkohli):

I just got it on a facebook page.

OpenStudy (rational):

Another fun problem find the sum of all integers \(n\) such that \(n^4+4\) is prime

Parth (parthkohli):

1 works. even numbers don't.

OpenStudy (mimi_x3):

consecutive integers of any random integers?

OpenStudy (mimi_x3):

im thinking we need to see one that has +/-2 in mod now

Parth (parthkohli):

mod 5... cases 5k: gotta check this one 5k + 1: can't be prime 5k + 2: can't be prime 5k + 3: can't be prime 5k + 4: can't be prime

OpenStudy (rational):

that looks neat ! XD there is another shortcut for this too

OpenStudy (rational):

\[n^4+4 = (n^2)^2 + 4 = (n^2)^2 + 4n^2 + 4 - 4n^2 = (n^2+2)^2 - 4n^2 = \cdots \]

Parth (parthkohli):

\[(5k)^4 + 4 = 625k^4 + 4 = 625k^4 + 100k^2 + 4 - 100k^2 \]\[= (25k + 4)^2 - (10k)^2 = \cdots\]

Parth (parthkohli):

holy lol why didn't i think of factoring like this in the general case

OpenStudy (mimi_x3):

5k+2 can be prime

OpenStudy (mimi_x3):

so can 5k+3 and 5k+1 and 5k+4

OpenStudy (mimi_x3):

the reason mod 6 works so well is that 6 is the product of the lowest 2 primes

OpenStudy (rational):

\[\large (5k+a)^4 + 4\equiv a^4 + 4 \pmod{5} \] and Fermat's little them gives us \[\large a^4\equiv 1 \pmod{5}\]

OpenStudy (rational):

Fermat's little thm requires \(5\nmid a\) so we only need to check the case \(a = 5k\)

Parth (parthkohli):

@Mimi_x3 what i meant was \(n^4 + 4 \) can't be prime for 5k + 2.

Parth (parthkohli):

i'm so dumb. why didn't i think of factoring in the general case

OpenStudy (mimi_x3):

ah okay

OpenStudy (mimi_x3):

nice little fermat application

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!