Find the largest integer $n$ satisfying the following conditions: (i) $n^2$ can be expressed as the difference of two consecutive cubes; (ii) $2n + 10$ is a perfect square.
$n^2=(m+1)^3-m^3=3m^2+3m+1$, so $(2n-1)(2n+1)=3(2m+1)^2$.
The two odd factors are coprime, so one is a square and the other three times a square; $2n+1=a^2$ is impossible together with $2n-1=3b^2$ (mod $3$), so $2n-1=a^2$.
With $2n+10=s^2$, $s^2-a^2=11$, so $s=6$, $a=5$, $n=13$ (indeed $13^2=8^3-7^3$).