- Number of digits in a number ~ log(x) + 1
- Number of digits in factorial n! = log(n) + log(n-1) + ... + log(1) + 1 (log base 10 in C is log10(double).
- (n choose k) = product (i = 1 to k) {(n - k + i) / i} (530 - Binomial showdown)
- (n choose k) = (n choose n-k) (530 - Binomial showdown)
[Linear Algebra]
[Python]
No comments:
Post a Comment