An almighty coincidence

Share this page
December 2007

First let's calculate the frequency of a particular digit $i$ with $ i \neq 0$.

Its frequency among 1-digit numbers is clearly 1/9.

Within the 90 two-digit numbers our digit $i$ can occur in first or in second place. If it occurs in first place, it can be followed by any of the digits from 0 to 9, so there are 10 instances of this. If it occurs in second place it can be preceded by the digits from 1 up to 9, so there are 9 instances of this. Now if we write out all 90 two-digit numbers, we get a string of 180 digits in total, so the frequency of $i$ in this string is $19/180$.

Within the 900 three-digit numbers the digit $i$ can occur in first, second or third place. If it appears in first place, it can be followed by any of the numbers from 0 to 99, so there are 100 instances of this. If it occurs in second place, it can be preceded by any of the numbers from 1 to 9, and followed by any of the numbers from 0 to 9, so there are $9 \times 10$ instances of $i$ occurring in the middle. If $i$ occurs in last place, it can be preceded by any of the numbers from 10 to 99, so there are 90 instances of this.

If we write out all the 900 three-digit numbers, we get a string of 2700 digits in total, so the frequency of $i$ among 3-digit numbers is

  \[ \frac{100 + 90 + 90}{2700} = \frac{280}{2700}. \]    

The overall result now follows from the fact that 1, 2 and 3-digit numbers make up, respectively, 1/999th, 90/999th and 900/999th of all the numbers from 1 to 999.

A similar calculation gives the result for the digit 0.

Return to main article
  • Want facts and want them fast? Our Maths in a minute series explores key mathematical concepts in just a few words.

  • As COP28, the 2023 United Nations Climate Change Conference, kicks off we look at how maths can help understand the climate crisis.

  • How do you create dramatic film out of mathematics? We find out with writer and director Timothy Lanzone.

  • Mathematics plays a central role in understanding how infectious diseases spread. This collection of articles looks at some basic concepts in epidemiology to help you understand this fascinating and important field, and set you up for further study.

  • Find out why the formula we use to work out conditional probabilities is true!

  • We talk about a play that explores the fascinating mathematical collaboration between the mathematicians GH Hardy and Srinivasa Ramanujan.