- Summation formula of arithmetic sequence:
n*(a1+an)/2,n*a1+n(n-1)d/2
GCD essentially is an intersection between prime factorizations of two numbers. For example, 198 (2 * 3 * 3 * 11) and 84 (2 * 2 * 3 * 7) GCD is 6(2 * 3).
- LCM(Least Common Multiple)
- GCF(Greatest Common Factor)
- In matrix:
i/cto find Raw.i%cto find Column - Logarithm:
math.log(num, base) - Sieve of Eratosthenes: 952, 204
- math.comb(n, k): C^k_n combination # Note: reduce(lambda x,y:x*y, range(1, i+1))
- math.gcd(x, y): Greatest common divosor of x and y