I’m working on a problem, and believe I have reduced it to the solution of the Diophantine equation $$23^n+1=2x^2.$$
Brute force calculations suggest that the only solutions are $(n,x)=(0,1)$ and $(n,x)=(3,78)$. I haven’t proven it algebraically yet, but wanted to know if it’s a known result?
Comments already contain enough information to craft an answer.
Inspecting both sides mod $7$ we find that only possible remainder is $2$, i.e. $$ 23^n+1\equiv 2x^2\equiv 2\pmod 7. $$ Since $23^n\equiv 1\pmod 7$ is equivalent to $3\mid n$, we can assume $n=3k$ for some integer $k$. Then the original equation becomes $$ (23^{k})^3+1=2x^2. $$ Multiplying both sides by $8$ and letting $a=2\cdot23^k$ and $b=4x$, we have $$ a^3+8=b^2. $$ This is a Mordell curve with finitely many solutions $(a,b)$ being $(−2, 0), (1, 3), (2, 4), (46, 312)$. Only $(2,4)$ and $(46,312)$ translate to the solution of the original problem, giving $n=0,x=1$ and $n=3,x=78$ respectively.