Factorial table
(Mylib/Combinatorics/factorial_table.cpp)
Operations
-
factorial_table(int N)
- $0!$ ~ $N!$とその逆数を計算する。
- Time complexity $O(N)$
-
factorial(int i)
: return $i!$
-
inv_factorial(int i)
: return $\frac{1}{i!}$
-
P(int n, int k)
: return $_nP_k$
-
C(int n, int k)
: return $_nC_k$
-
H(int n, int k)
: return $_nH_k = _{n+k-1}C_k$
Requirements
Notes
Problems
References
Required by
Verified with
Code
Back to top page