Problem

Source: 2013 Saudi Arabia GMO TST III p4

Tags: number theory, divides, divisible



Find all pairs of positive integers $(a,b)$ such that $a^2 + b^2$ divides both $a^3 + 1$ and $b^3 + 1$.