39 ! is divided by 41 . then what is the remainder ?
"substituting p = 41 in the wilson ' s theorem , we get 40 ! + 141 = 0 40 × 39 ! + 141 = 0 − 1 × 39 ! 41 = − 1 cancelling - 1 on both sides , 39 ! 41 = 1 a"
reminder(factorial(39), 41)