Incredible prime 2!(part 2)

Let S S be the set of all positive integers n n , such that n 2 1 n^2 - 1 is a prime.

Find the smallest element of S S .

Also try Incredible prime 2! This question is a part of this set


The answer is 2.

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.

1 solution

Nihar Mahajan
Feb 8, 2015

We all know -

n 2 1 = ( n + 1 ) ( n 1 ) \huge n^2 - 1 = (n + 1)(n - 1)

This can be only prime if one of its factors is 1 \huge 1 . So ,

C a s e 1 : \huge Case 1:

n + 1 = 1 n = 0 1 , i s , p r i m e \huge n +1 = 1 \Rightarrow n = 0 \Rightarrow -1 ,is , prime , which is not possible.

C a s e 2 : \huge Case 2:

n 1 = 1 n = 2 3 , i s , p r i m e \huge n - 1 = 1 \Rightarrow n =2 \Rightarrow 3, is , prime , which is true.

So , n = 2 \huge n = 2 is the only unique solution.

Also , 3 \huge 3 is the only example of a prime being one less than a perfect square.

Nice solution, but no need to use \huge for everything.

Siddhartha Srivastava - 6 years, 4 months ago

the answer should be 2 -2 , (there's no mention of positive solution)

tasmeem reza - 6 years, 4 months ago

Log in to reply

Yeah! Sorry about that. I edited the question.

Nihar Mahajan - 6 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...