63rd International Mathematical Olympiad (IMO 2022)

 

 

Problem 5

Find all triples (a,b,p) of positive integers with p prime that satisfy

ap =b!+p.