Problem

Source: INAMO Shortlist 2015 N2

Tags: trinomial, area of a triangle, algebra, integer root, right triangle, Integers



Suppose that $a, b$ are natural numbers so that all the roots of $x^2 + ax - b$ and $x^2 - ax + b$ are integers. Show that exists a right triangle with integer sides, with $a$ the length of the hypotenuse and $b$ the area .