In the mid-1600s, Fermat made the following claim:
Theorem: The Diophantine equation $$Y^2+2=X^3 \tag{$\star$}$$ has only one positive integer equation, namely $(x,y)=(3,5)$.
Proofs were found by Euler and others — starting about a century after Fermat made his claim — but none of them used math that was available to Fermat. Because ($\star$) is an example of an elliptic curve, many mathematicians didn’t think Fermat had a proof, but a completely elementary proof within Fermat’s grasp was recently found (bonus: it uses uses infinite descent!).
Regardless, I’m still interested in finding alternative elementary techniques that would have been available to Fermat and his contemporaries, which might be applied to equations like ($\star$) — for example, see this question, where I attempt (in vain) to solve it another way.
I‘ve found a slight adaptation of that proof which appears [to me] to be valid, and I’d like to see if anyone can find a flaw.
Proof. Considering ($\star$) modulo $4$, it’s clear that $x$ and $y$ are both odd; furthermore, evidently $y>x$. Hence there exist integers $a>b\ge 1$ such that $x=a-b$ and $y=a+b$. Substituting into ($\star$) and simplifying yields
$$b^3-3ab^2+b^2+3a^2b+2ab-a^3+a^2+2=0.$$
This can be rewritten as \begin{align} 2(a-b)(a^2+b^2+1) &= (a-b+1)((a+b)^2+2), \end{align} and since $a-b>0$, this implies \begin{align} \tag{$\dagger$} \frac{2(a^2+b^2+1)}{(a+b)^2+2} &= \frac{a-b+1}{a-b}. \end{align} A quick calculation on ($\star$) shows that in the range $1 \le a-b \le 3$, the only solution is $a-b=3$, which implies $x=3$. Now assume $a-b=x > 3$. As $a-b$ approaches infinity from below, the right-hand side of ($\dagger$) approaches $1$ from above; hence the left-hand side must also approach $1$ from above. Using $\rightarrow$ to mean “approaches from above”, we have the following: \begin{align} \frac{2(a^2+b^2+1)}{(a+b)^2+2} &\rightarrow 1 \\[0.5em] 2(a^2+b^2+1) &\rightarrow (a+b)^2+2 \\ a^2+b^2 &\rightarrow 2ab \\ (a-b)^2 &\rightarrow 0. \end{align} Since $a-b > 3$ and growing, this is clearly impossible. Hence the only solution is $x=3$. QED
Where is the error in this logic?