MathLabs

Problem 1

Find all quadruples of positive integers (a,p,m,o)(a, p, m, o) with o≥2o \ge 2 such that a!+p!=mo+26a! + p! = m^o + 26.
Step 5 of 5: Assemble all quadruples
(a,p,m,o)∈{(4,3,2,2),(3,4,2,2),(5,3,10,2),(3,5,10,2)}(a,p,m,o)\in\{(4,3,2,2),(3,4,2,2),(5,3,10,2),(3,5,10,2)\}
Detailed analysis

Combining the three cases, the only solutions with a≥pa\ge p are (a,p,m,o)=(4,3,2,2)(a,p,m,o)=(4,3,2,2) and (5,3,10,2)(5,3,10,2). Since the equation is symmetric in aa and pp, swapping the two coordinates gives (3,4,2,2)(3,4,2,2) and (3,5,10,2)(3,5,10,2). These four quadruples are exactly the solutions.