Discrete math · Boolean algebra and logic circuits
Computers add binary numbers with small circuits built from gates, which can be chained to handle any width.