Write out the powers of two and keep only the first digit:
The digits are not equally common. Among the first hundred powers of two, exactly thirty begin with 1, while only five begin with 9. Push to a million and the shares settle near 30.1% for the digit 1 and 4.6% for the digit 9. The limiting frequency of leading digit is
and this is a theorem, not an empirical tendency. The derivation needs one change of viewpoint and one classical result about rotations of the circle.
The fractional part carries the digit
Since , split the exponent into its integer and fractional parts, with . Then
so is the mantissa of : the number with the same digits but the decimal point after the first one. The leading digit is exactly when , that is, when
The nine digits partition into nine intervals, and the interval for digit has length . Digit 1 owns , almost a third of the circle; digit 9 owns the sliver of length . The whole question is now: how do the fractional parts , with , distribute over ?
One structural fact first: is irrational. If with positive integers , then , which forces a power of 5 to equal a power of 2; unique factorization says no. Consequently the points are all distinct (a repeat would make an integer), and the sequence never becomes periodic.
Equidistribution
The map is a rotation of the circle by the irrational angle , and is the orbit of under that rotation. The equidistribution theorem says that such an orbit spreads uniformly: for every interval ,
Applied to the digit intervals, this is the whole result: the frequency of leading digit among the powers of two converges to .
The proof runs through Weyl’s criterion: a sequence is equidistributed in if and only if, for every nonzero integer , the exponential averages vanish in the limit,
The criterion converts a statement about counting into a statement about cancellation, and for the rotation orbit the cancellation is a finite geometric series:
Irrationality of guarantees is never an integer, so the bound is finite, and crucially it does not grow with : dividing by sends the average to zero. (The other half of the criterion, that killing all the exponentials forces uniform counting, follows by sandwiching the indicator function of an interval between trigonometric polynomials; Kuipers and Niederreiter give the two-page argument.)
The nine limiting frequencies, to four places:
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | |
|---|---|---|---|---|---|---|---|---|---|
| .3010 | .1761 | .1249 | .0969 | .0792 | .0669 | .0580 | .0512 | .0458 |
The drift, made visible
The convergence has a fine structure worth seeing. Ten doublings multiply by , which is three orders of magnitude and a little more: . So after every ten steps the mantissa returns almost to where it started, multiplied by . The leading-digit sequence therefore repeats the block
over and over, with each slot creeping upward by 2.4% per cycle. The pattern only changes when a slot’s mantissa crosses a digit boundary, and the crossings are what equidistribution looks like at ground level. Follow the slot that starts at 64:
Four cycles of 2.4% push 6.4 over 7, and is the first power of two whose decimal expansion starts with 7. The slot that starts at 8 takes even longer to cross:
so the first power of two starting with 9 is . (The same number is where double-precision floating point stops representing consecutive integers exactly: JavaScript’s Number.MAX_SAFE_INTEGER is . The two facts are unrelated, but it is a good number to recognize on sight.) After the ten-step near-period, the next much better rational approximation to is : ninety-three doublings land within a whisker of twenty-eight decades, , so the residual drift of the ten-step pattern itself nearly repeats every 93 steps.
The widget counts the leading digits of exactly, by accumulating ; nothing is sampled. At small the shares visibly disagree with the limit (the digit-7 share is exactly zero until ), and the disagreement fades as the boundary crossings accumulate:
Scale invariance and Benford’s law
The powers of two are the clean, provable case of a broader phenomenon. Benford’s law is the empirical observation that many datasets assembled from the world (populations, physical constants, accounting ledgers) show roughly these same leading-digit frequencies. For data there is no theorem forcing this, but there is a theorem explaining which data should show it: a scale-invariance argument.
Suppose the leading-digit distribution of a positive random quantity does not change when the units change, that is, has the same leading-digit distribution as for every constant . The leading digit of depends only on , and multiplying by translates by modulo 1. Unit-invariance for all therefore says the distribution of on the circle is invariant under every rotation. Its Fourier coefficients then satisfy for all shifts , forcing for every : is uniform, and the digit frequencies are , the same computation as before.
The honest reading runs in one direction only. Nothing obliges a dataset to be scale-invariant, and plenty are not (adult heights in metres have no Benford behavior at all). The law tends to appear in data with wide dynamic range or multiplicative growth, where no single scale is privileged, and its failure in data that should have it is what forensic accountants use as a screening flag, a heuristic rather than a proof. For none of these hedges are needed: multiplicative growth is the definition of the sequence, and equidistribution does the rest.
A little history
The observation predates the name by decades. Simon Newcomb noticed in 1881 that the front pages of shared logarithm tables, the ones for numbers beginning with 1, were the most worn, and proposed the logarithmic law in a two-page note. Frank Benford, a physicist at General Electric, rediscovered it in 1938 and tested it against 20,229 numbers drawn from river areas, street addresses, molecular weights, and more; the law took his name. The equidistribution theorem for was proved independently around 1909–1910 by Bohl, Sierpiński, and Weyl, and Weyl’s 1916 paper recast it as the exponential-sum criterion used above, a tool that went on to power large parts of analytic number theory. The application to leading digits, along with much finer results, is laid out in Diaconis’s 1977 paper.
References
- Simon Newcomb. Note on the frequency of use of the different digits in natural numbers. American Journal of Mathematics, 4(1):39–40, 1881. The worn-pages observation and the first statement of the law.
- Frank Benford. The law of anomalous numbers. Proceedings of the American Philosophical Society, 78(4):551–572, 1938. The 20,229-number survey.
- Hermann Weyl. Über die Gleichverteilung von Zahlen mod. Eins. Mathematische Annalen, 77:313–352, 1916. The equidistribution criterion.
- Persi Diaconis. The distribution of leading digits and uniform distribution mod 1. Annals of Probability, 5(1):72–81, 1977. Leading digits of and beyond.
- L. Kuipers, H. Niederreiter. Uniform Distribution of Sequences. Wiley, 1974. The standard reference, including the full proof of Weyl’s criterion.