Jul 8, 2024
n! = n * (n-1) * (n-2) ... 1
5! = 5 * 4 * 3 * 2 * 1 = 120
4! = 4 * 3 * 2 * 1 = 24
0! = 1
, 1! = 1
m
ways and another in n
ways, ways both can happen: m * n
.nPr = n! / (n - r)!
10P4 = 10! / (10 - 4)!
nCr = n! / [r! * (n - r)!]
C(n, 0) = 1
C(n, n) = 1
C(n, 1) = n
C(n, r) = C(n, n-r)
10C5 = 10! / [5! * (10 - 5)!]
n
objects: (n - 1)!
(n - 1)! / 2