Problem

Source: Czech-Polish-Slovak Match Junior 2019, team p1 CPSJ

Tags: number theory, rational, Integers



Rational numbers $a, b$ are such that $a+b$ and $a^2+b^2$ are integers. Prove that $a, b$ are integers.