What is the remainder when 40! is divided by 1763?
I know this would be much easier if 1763 was prime, but it's not. So I don't see how Fermat's Little Theorem or Wilson's Theorem are applicable.
I know it comes down to 40! = x (mod 1763), but I don't see how I can manipulate this to find it easily. I thought of making it 37! * 38 * 39 * 40 = x (mod 1763) because 37 is prime, but I don't know if this helps.

