These are the shortest on-ramp notes in this category and the ones most likely to be usable immediately in contest practice.
GCD and Extended Euclid, Modular Arithmetic, Modular Inverse, Sieve of Eratosthenes, Prime Factorization
These notes emphasize the parts of number theory that become algorithms rather than standalone proofs.
Modular arithmetic, multiplicative structure, and fast polynomial machinery.
Number theory in contest problems is less about memorizing isolated theorems and more about recognizing structure: modular inverses, multiplicative functions, convolution-friendly moduli, or the shape of a factorization argument.
I prefer explanations that connect the algebra to the implementation. If a fact is only useful after it becomes a linear sieve, a CRT merge, or an NTT butterfly, the note should say so directly.
The labels are not cosmetic. They are there to signal the amount of prerequisite structure and implementation fragility you should expect before opening the note.
These are the shortest on-ramp notes in this category and the ones most likely to be usable immediately in contest practice.
GCD and Extended Euclid, Modular Arithmetic, Modular Inverse, Sieve of Eratosthenes, Prime Factorization
These notes assume the base routine is already familiar and focus on the first real structural upgrades.
Euler Phi
These are the notes where proofs, reductions, or implementation details become the main bottleneck.
Chinese Remainder Theorem, Mobius Function, NTT, Primitive Roots and Discrete Logarithm, Miller-Rabin and Pollard Rho, Polynomial Interpolation
These are the finished note pages in this category, each with rendered TeX, C++ code, references, and practice suggestions.
The basic divisibility toolkit for reducing fractions, solving linear equations, and building modular arithmetic routines.
Keep arithmetic safe under a modulus by tracking the algebraic rules that still survive after reduction.
Undo multiplication modulo m when the gcd condition allows it, and choose the right inverse routine for the modulus.
Precompute primality and smallest prime factors once, then answer many prime-related queries cheaply.
Combine modular constraints into one congruence when the residue classes are compatible.
Break numbers into prime powers and choose the right factorization strategy for the size and query pattern.
Count how many integers up to n are coprime to n, and use the factorization formula to turn that count into code.
Use the Mobius function and inversion to separate exact divisibility structure from overcounted multiples.
Polynomial convolution modulo 998244353 using roots of unity and iterative butterfly layers.
Work inside cyclic multiplicative groups by finding generators and solving exponent equations with baby-step giant-step.
The standard 64-bit primality and factorization toolkit once trial division stops being realistic.
Recover or evaluate a low-degree polynomial from sample points, usually with modular Lagrange interpolation.
The default order follows each note's dependency weight: early notes establish primitives, later notes reuse them or assume the same invariants without re-explaining them.
The basic divisibility toolkit for reducing fractions, solving linear equations, and building modular arithmetic routines.
Keep arithmetic safe under a modulus by tracking the algebraic rules that still survive after reduction.
Undo multiplication modulo m when the gcd condition allows it, and choose the right inverse routine for the modulus.
Precompute primality and smallest prime factors once, then answer many prime-related queries cheaply.
Combine modular constraints into one congruence when the residue classes are compatible.
Break numbers into prime powers and choose the right factorization strategy for the size and query pattern.
Count how many integers up to n are coprime to n, and use the factorization formula to turn that count into code.
Use the Mobius function and inversion to separate exact divisibility structure from overcounted multiples.
Polynomial convolution modulo 998244353 using roots of unity and iterative butterfly layers.
Work inside cyclic multiplicative groups by finding generators and solving exponent equations with baby-step giant-step.
The standard 64-bit primality and factorization toolkit once trial division stops being realistic.
Recover or evaluate a low-degree polynomial from sample points, usually with modular Lagrange interpolation.
These are still intentionally shown as planned or outline topics rather than shallow filler. The branch should feel incomplete in honest places instead of fake-complete everywhere.
Raw files are still available here when you want the original TeX, C++, or statement assets.