Problem

Source: Nigerian mthematics olympiad round 3 problem 4

Tags: number theory, Diophantine equation



let $p$and $q=p+2$ be twin primes. consider the diophantine equation $(+)$ given by $n!+pq^2=(mp)^2$ $m\geq1$, $n\geq1$ i. if $m=p$,find the value of $p$. ii. how many solution quadruple $(p,q,m,n)$ does $(+)$ have ?