Binary Representation Theorem

Summary: Euler’s algebraic proof (§328–§329) that every non-negative integer has a unique representation as a sum of distinct powers of . The identity shows that the generating function for partitions into distinct powers of is exactly the geometric series — so each appears with coefficient . Application: weighing with binary weights on a one-pan scale.

Sources: chapter16

Last updated: 2026-05-11


Statement

Equivalently, every non-negative integer admits a unique representation

(Source: chapter16, §329.)

Euler’s proof (§328)

Let and write its expansion as

Substituting for drops the factor:

and the left side is . Hence

and multiplying by :

Comparing term-by-term with the original expansion of :

so all coefficients are equal to . Therefore

Combinatorial interpretation (§329)

Expanding as a sum over choices of one term from each factor:

The coefficient of is the number of subsets with . Euler’s identity shows this is always — every has exactly one such subset.

Application: weighing with binary weights (§329)

A set of weights pounds suffices to weigh any whole-number weight on a one-pan scale, with each weight used at most once. With weights (, totalling ), any integer up to pounds can be weighed:

“With only the ten weights, 1 lb., 2 lb., 4 lb., 8 lb., 16 lb., 32 lb., 64 lb., 128 lb., 256 lb., 512 lb., anything up to 1024 lb. can be weighed. Indeed, if an eleventh weight weighing 1024 lb. is added to the set, then anything up to 2048 lb. can be weighed.” (§329)

This is Euler’s earliest published application of binary representation to practical computation. It anticipates by two centuries the use of binary in digital computation.

Generalization

The same fixed-point argument applies to any sequence of integers with for some integer , leading to a unique base- representation. Euler immediately specializes to balanced ternary in §330–§331 — see balanced-ternary-representation.

Modern reading

This is the simplest non-trivial generating-function identity for representation uniqueness, and the prototype for a long tradition of representation theorems: Cantor’s mixed-radix, Zeckendorf’s Fibonacci representation, Ostrowski numeration, etc. The fixed-point trick — substitute , get a functional equation, conclude all coefficients agree — is the simplest of its kind.

Note also that the identity is dual to Euler’s distinct = odd theorem: there the distinct-part product equals an odd-restricted reciprocal product; here it equals the unrestricted geometric series.