Problem

Source: Belarusian MO 2023

Tags: number theory



Prove that for any fixed integer $a$ equation $$(m!+a)^2=n!+a^2$$has finitely many solutions in positive integers $m,n$