Problem

Source: Romania JBMO TST 2022

Tags: number theory, romania, Romanian TST



Let $p$ be an odd prime number. Prove that there exist nonnegative integers $x,y,z,t$ not all of which are $0$ such that $t<p$ and \[x^2+y^2+z^2=tp.\]