Question 117Find all triples of natural numbers $(x, y, z)$ such that: $$ x^{2}+y^{2}=3 \cdot 2016^{z}+77. $$