Find the prime number which is one less than a perfect square number?
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.
Let the prime number be p and the square number be a 2 . Then p = a 2 − 1 = ( a + 1 ) ( a − 1 ) In order for the number to be prime, the two factors ( a + 1 ) and ( a − 1 ) must be equal to 1 and 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
But we need p > 2 , so we reject this case.
Case 2
{ a + 1 = p a − 1 = 1 ⇒ a = 2 ⇒ p = 3
This case works!
Therefore p = 3 .
Problem Loading...
Note Loading...
Set Loading...
Let Y = ( n 2 − 1 ) = ( n + 1 ) × ( n − 1 )
Y can only be a prime number if ( n − 1 ) = 1 or when n = 2 and Y = 3 .