1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Greatest Common Divisor
// Least Common Multiple
// Factorial: n!
// The number of permutation: k-permutations of n
// - n: a set size of n
// - k: taken k of elements from the set
// nPk = n! / (n - k)!
// The number of combination: k-combination of n
// - n: a set size of n
// - k: taken k of elements from the set
// nCk = n! / ((n - k)! * k!)