Problem

Source: Baltic Way 2024, Problem 20

Tags: number theory, number theory proposed, Diophantine equation



Positive integers $a$, $b$ and $c$ satisfy the system of equations \begin{align*} (ab-1)^2&=c(a^2+b^2)+ab+1,\\ a^2+b^2&=c^2+ab. \end{align*}a) Prove that $c+1$ is a perfect square. b) Find all such triples $(a,b,c)$.