The only prime $p$ such that $p+1$ is a perfect square is $3$
Which theorem I nee to use?
If $p+1$ is a perfect square, we have $p+1 = n^2$ i.e., $p = n^2-1 = (n+1)(n-1)$.
If $n>2$ then $n-1$ $> 1$ i.e., p is not a prime.
Thus, the only case where $p+1$ can be a perfect square is if $n = 2$ i.e., $p = 3.$
Copyright © 2021 JogjaFile Inc.
If $p+1$ is a perfect square, we have $p+1 = n^2$ i.e., $p = n^2-1 = (n+1)(n-1)$.
If $n>2$ then $n-1$ $> 1$ i.e., p is not a prime.
Thus, the only case where $p+1$ can be a perfect square is if $n = 2$ i.e., $p = 3.$