Problem

Source: Romanian ROM TST 2004, problem 6

Tags: invariant, symmetry, quadratics, algebra, polynomial, Vieta, number theory solved



Let $a,b$ be two positive integers, such that $ab\neq 1$. Find all the integer values that $f(a,b)$ can take, where \[ f(a,b) = \frac { a^2+ab+b^2} { ab- 1} . \]