I am asked to find the smallest positive $x$ such that $x \equiv 55! \pmod{61}$.
This invokes Wilson's theorem where $(p-1)! \equiv -1 \pmod p$.
This means $60! \equiv -1 \pmod{61}$.
But where to go from here?
I am asked to find the smallest positive $x$ such that $x \equiv 55! \pmod{61}$.
This invokes Wilson's theorem where $(p-1)! \equiv -1 \pmod p$.
This means $60! \equiv -1 \pmod{61}$.
But where to go from here?
Doing arithmetic modulo $\;61\;$ all along:
$$55!=\frac{60!}{(-5)(-4)(-3)(-2)(-1)}=\frac{-1}{-120}=-\frac1{2}=-31=30$$