What is the formula to calculate a factorial?

203 Views Asked by At

I am aware that there is a formula to calculate the sum of an arithmetic series. Is there a formula to calculate a product of an arithmetic series... in particular a factorial.

I am aware of the recursive / iterative algorithm which compute in linear time O(n) but I was wondering whether there is a formular so it can be computed in constant time O(1).