Prime from a perfect square

Find the prime number which is one less than a perfect square number?


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.

2 solutions

Ossama Ismail
Feb 10, 2016

Let Y = ( n 2 1 ) = ( n + 1 ) × ( n 1 ) Y = (n^2 -1 ) = (n+1) \times (n-1)

Y Y can only be a prime number if ( n 1 ) = 1 (n-1) =1 or when n = 2 n = 2 and Y = 3 Y = 3 .

Michael Fuller
Feb 13, 2016

Let the prime number be p p and the square number be a 2 a^2 . Then p = a 2 1 = ( a + 1 ) ( a 1 ) p=a^2-1=(a+1)(a-1) In order for the number to be prime, the two factors ( a + 1 ) (a+1) and ( a 1 ) (a-1) must be equal to 1 1 and p p . We don't know which is which yet, so test the two cases:

Case 1

{ a + 1 = 1 a 1 = p a = 0 p = 1 \begin{cases} a+1=1 \\ a-1=p \end{cases}\Rightarrow a=0\Rightarrow p=-1

But we need p > 2 p>2 , so we reject this case.

Case 2

{ a + 1 = p a 1 = 1 a = 2 p = 3 \begin{cases} a+1=p \\ a-1=1 \end{cases}\Rightarrow a=2\Rightarrow p=3

This case works!

Therefore p = 3 p=\large \color{#20A900}{\boxed{3}} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...