Problem

Source: Moldova EGMO TST 2022

Tags: number theory



Find all triplets of nonnegative integers $(x, y, z)$ that satisfy: $x^2-3y^2=y^2-3z^2=22$.