Phase 21Days 118-122

Number Theory & Combinatorics

The math toolkit for CP: sieve, modular arithmetic, inverses, combinatorics, matrix exponentiation

Phase Goal

Acquire the arithmetic that gates a huge fraction of Codeforces problems above 1400.

Progress

Day 118: Primes & factorization

Day 119: Modular arithmetic

Day 120: Combinatorics

Day 121: Matrix exponentiation & sequences

Day 122: Number theory problem set & recap

Phase Complete!

After this phase, you'll be able to:

  • Primes & factorization
  • Modular arithmetic
  • Combinatorics
  • Matrix exponentiation & sequences
  • Number theory problem set & recap

After Phase 21, explain a core invariant, reconstruct a solution after a delay, diagnose a bug, and solve one unlabelled variation. Repair a failed prerequisite before advancing; record help separately from independent work.