MathDB
all triples (p,a,m) satisfying a condition

Source: Bulgarian NMO 2017, 3rd round, p.4

April 21, 2017
algebranumber theory

Problem Statement

Find all triples (p,a,m); p is a prime number, a,mNa,m\in \mathbb{N}, which satisfy: a5p2a\leq 5p^2 and (p1)!+a=pm(p-1)!+a=p^m.