$p=7~(n=1)$ is a solution. But how to prove that there are not any other solutions?
2026-03-25 18:48:13.1774464493
Finding all prime $p$ for which there exists a positive integer $n$ such that $p^n+1$ is a perfect square?
151 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
We are trying to solve:
$$p^{n}+1=q^2$$
$$p^{n}=(q-1)(q+1)$$
This means that:
$$ \left\{\begin{matrix} q-1=p^{\beta}\\ q+1=p^{\alpha} \\ \alpha>\beta, \alpha+\beta =n \end{matrix}\right. $$
Subtracting the $2$ equations:
$$p^{\alpha}-p^{\beta}=2$$
$$p^{\beta}(p^{\alpha-\beta}-1)=2$$
Since the two factors on the LHS are both integers we have that $p^{\beta}|2$, that is to say $(p,\beta)=(2,1)$. So $p^{\alpha-\beta}-1=2^{\alpha-1}-1=1$ which implies that $\alpha=2$. So $$(p,q,n)=(2,3,3)$$
:)