Solution. We shall find a pair such that m+n=p is prime and n is even. Applying Wilson's theorem we have
m!=(p−n)!=(p−n+1)…(p−2)(p−1)(p−1)!≡−(n−1)…(−2)(−1)−1≡(n−1)!1≡n!n(modp)
It follows from Fermat's Little Theorem that (n!)p≡n!(modp), therefore
(m!)n+(n!)m+1≡(n!n)n+(n!)p−n+1≡(n!)nnn+n!+(n!)n(modp)
thus it suffices to prove that the number nn+n!+(n!)n has a prime divisor p>n for infinitely many even n.
We prove that this condition is satisfied, for instance, by all the numbers of the form n=2q, where q>2 is prime. Let A=(2q)2q+(2q)!+((2q)!)2q. For a prime p and integer k we denote by vp(k) the largest integer ℓ such that pℓ divides k.
If r(2q)2q>22q−1q2, therefore A has a prime divisor p>2q, q.e.d.