Example. Binary expansions [00CX]

Prove: every natural number can be written as the sum of distinct powers of two. That is, every natural number n can be written in the form n = 2^a + 2^b + 2^c + \dots where a, b, c, \dots are all different natural numbers. This is called the binary expansion of n, and—as you probably know—is how natural numbers are represented in a modern computer.

(Just for fun, if we wanted to be completely formal about it, we could write the proposition like this: \forall {n}: {\mathbb {N}}.\;{\exists {E}: {\mathcal {P}(\mathbb {N})}.\;{n = \sum _{e \in E} 2^e}} but we need not use quite so formal notation.)

Context

More induction examples [00CU]

Backlinks

The largest known prime [00EM]

Weeknotes for 3 April 2026 (week 13) [2026-W13]