How to quickly calculate this product: $$1/36*1/35*1/34*1/33*...*1/(36-n)$$
This is neither arithmetic, nor geometric progression, so I am puzzled.
How to quickly calculate this product: $$1/36*1/35*1/34*1/33*...*1/(36-n)$$
This is neither arithmetic, nor geometric progression, so I am puzzled.
If you're looking for a closed form, it's this:
$$1/36*1/35*1/34*1/33*...*1/(36-n) = \frac{1}{\prod_{i=0}^n 36-i} = \frac{(35-n)!}{36!} $$
However, if you're looking for a fast way to compute this, according to Wikipedia, the best efficiency you can achieve is $O(n\big(log (n) \cdot log( log( n))\big)^2)$: