Problem

Source: china mathematical olympiad cmo 2005 final round - Problem 6

Tags: modular arithmetic, number theory, relatively prime, Diophantine equation, Zsigmondy



Find all nonnegative integer solutions $(x,y,z,w)$ of the equation\[2^x\cdot3^y-5^z\cdot7^w=1.\]