Find the remainder when $45!$ is divided by $47$?

2.1k Views Asked by At

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.

5

There are 5 best solutions below

5
On BEST ANSWER

$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$

3
On

$$-1\equiv46!\equiv46\cdot45!\equiv(-1)\cdot45!\pmod{47}$$

$$\implies1\equiv45!$$

0
On

Note that for any prime $(p-1)^2=+1\pmod p$. Now start with Wilson's theorem $(p-1)!=-1\pmod p$ and multiply both sides by $(p-1)$, use the above fact, to arrive at $(p-2)!=+1\pmod p$

4
On

Wilson's theorem says $46!\pmod{47}\equiv -1\pmod{47}$. But then

$$ \begin{align*} 45!\pmod{47}&\equiv [46!\cdot(46)^{-1}]\pmod{47}\\ &\equiv [46!\pmod{47}]\cdot[(46)^{-1}\pmod{47}]\\ &\equiv [-1\pmod{47}]\cdot[46\pmod{47}]\\ &\equiv -46\pmod{47}\\ &\equiv 1\pmod{47} \end{align*} $$

0
On

By Wilson's Theorem: 46!≡-1(mod 47)≡46(mod 47).

  1. 46!≡46 x 45!≡46(mod 47).
  2. Thus, 45!≡1(mod 47)