Problem

Source: IMOTC 2015 Practice Test 1 Problem 1

Tags: number theory, APMO



Find all positive integers $a,b$ such that $\frac{a^2+b}{b^2-a}$ and $\frac{b^2+a}{a^2-b}$ are also integers.