Problem

Source: VII International Festival of Young Mathematicians Sozopol, Theme for 10-12 grade

Tags: number theory, factorial



Find all pairs of integers $(x,y)$ for which $x^z+z^x=(x+z)!$.