Find the remainder when $45!$ is divided by $47$?
My approach
I am using Wilson's theorem to solve the problem.
I reduced the expression into ($47$-$1$-$1$)!/$47!$=$(47$-$1$)/$47$!-$1$/$47!$=-$1$-$1$=-$2$
Am I right in my approach.Please correct me if I am wrong?
Please correct me how to approach towards the problem.
$2*24=3*16=4*12=5*19=6*8=7*17=...=1\mod47$
so the product of all of them is $1\mod 47$