Problem

Source: Benelux MO 2019 P4

Tags: number theory, BxMO



An integer $m>1$ is rich if for any positive integer $n$, there exist positive integers $x,y,z$ such that $n=mx^2-y^2-z^2$. An integer $m>1$ is poor if it is not rich. Find a poor integer. Find a rich integer.