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 3 of 5: Eliminate p=2p=2
p=2: a!=mo+24, a=5⇒mo=96 (impossible); a≥6⇒mo≡3(mod9)⇒o=1p=2:\ a!=m^{o}+24,\ a=5\Rightarrow m^{o}=96\text{ (impossible)};\ a\ge6\Rightarrow m^{o}\equiv3\pmod9\Rightarrow o=1
Detailed analysis

If p=2p=2, then a≥2a\ge2. Values a≤4a\le4 would give a!−26≤−2a!-26\le-2, impossible because mo>0m^o>0, so a≥5a\ge5. If a=5a=5, then mo=96=25⋅3m^o=96=2^5\cdot3, which is not a perfect oo-th power for any o≥2o\ge2. If a≥6a\ge6, then 9∣a!9\mid a!, so mo≡−24≡3(mod9)m^o\equiv-24\equiv3\pmod9; but an oo-th power with o≥2o\ge2 is either 0(mod9)0\pmod9 when 3∣m3\mid m or a unit modulo 99 when 3∤m3\nmid m, and neither gives 3(mod9)3\pmod9. Thus p=2p=2 gives no solution.