๐๏ธ Arithmetic
Operators
๐๏ธ Chinese Remainder Theorem
Theorem
๐๏ธ Dirichlet Convolution
If $f , g
๐๏ธ Fast Fourier Transform (FFT)
๐๏ธ Fibonacci Numbers
From the generating function, we have
๐๏ธ Greatest Common Divisor (GCD)
Euclid's Algorithm
๐๏ธ Mรถbius function
https://codeforces.com/blog/entry/53925
๐๏ธ Integers in Modular Arithmetic
- Iterative modular inverse//codeforces.com/blog/entry/64345?#comment-482502
๐๏ธ Montgomery Space
๐๏ธ Number Theoretic Transform (NTT)
- ModularArithmetic::ModInt โ /cp/math/modint
๐๏ธ Number Theory
Euclid's lemma โ If a prime p divides the product ab of two integers a and b, then p must divide at least one of those integers a and b.
๐๏ธ Polynomial Arithmetic
- NTT::conv1D โ /cp/math/ntt
๐๏ธ Primality Tests
Naive
๐๏ธ Prime Factorization
Naive Algorithm
๐๏ธ Sieve
Sieve of Eratosthenes