Problem

Source: Serbian National Olympiad 2012, Problem 2

Tags: number theory, greatest common divisor, algebra, polynomial, Vieta, inequalities, number theory proposed



Find all natural numbers $a$ and $b$ such that \[a|b^2, \quad b|a^2 \mbox{ and } a+1|b^2+1.\]