Problem

Source: 2018 Thailand October Camp 3.2

Tags: number theory, Diophantine equation



Find all nonnegative integers $x, y, z$ satisfying the equation $$2^x+31^y=z^2.$$