Math & Numbers

Number-theory and digit-manipulation problems solved with modular arithmetic, recursion, and iterative reduction.

Math problems build intuition for working with the digits and divisibility of integers — extracting digits with modulo, reducing values with integer division, and recognizing when a closed-form or Euclidean-style shortcut beats brute enumeration.

Number-theory and digit-manipulation problems solved with modular arithmetic, recursion, and iterative reduction.