Problem

Source: 2019 Thailand October Camp TSTST 1.3

Tags: Diophantine equation, number theory



Find all pairs of positive integers $(m, n)$ satisfying the equation $$m!+n!=m^n+1.$$