Re: product of an arithmetic sequence





Sebastian Martin Ruiz wrote:
> We can calculate Mod[k!,n] in polynomial time complexity? k, n
> integers.
>
> Mod[k!,n] = k! (module n)

I doubt it ... If so, there is a trivial prime-testing algorithm using
Wilson's Theorem:

THEOREM. (n-1)! = -1 (mod n) iff n is prime.

--- Christopher Heckman

.



Relevant Pages