Problem

Source: IMO 2022 Problem 5

Tags: number theory, Divisibility, LTE Lemma, IMO, IMO 2022, Diophantine equation



Find all triples $(a,b,p)$ of positive integers with $p$ prime and \[ a^p=b!+p. \]