Problem

Source: 2021 Peru TST D2P1

Tags: number theory



Find all positive integers $m$ for which there exist three positive integers $a,b,c$ such that $abcm=1+a^2+b^2+c^2$.