Problem

Source: ELMO Shortlist 2024/N4

Tags: Elmo, number theory



Find all pairs $(a,b)$ of positive integers such that $a^2\mid b^3+1$ and $b^2\mid a^3+1$. Linus Tang