

Coincidences can crop up in the strangest places. While Peter Hughes, an accountant from Birkenhead, was at a church service, his eye fell on the board showing the list of hymn numbers for the service. They were 16, 37, 428 and 590.
Mathematicians naturally look on numbers as a goldmine for distraction, maybe seeking to combine them to form an equation, or noting how many are primes. In this case, Peter observed something particularly curious: all ten digits appear exactly once! How likely is that, he wondered? His initial back-of-the-envelope estimate indicated that the chance might be about 1 in 6,000. He then sought our comments.
Working out the odds: start with common sense
This is a nice example of a coincidence from everyday life. Whenever you attempt to work out the chance of such a coincidence, it's necessary to make a number of common sense assumptions, and then to build a mathematical model to come up with a sensible answer. Here, the chance will depend on how many hymns are available, how many are chosen, and what the selection process is. Hymns are
generally numbered consecutively from
That latter condition is central: fewer than four hymns makes Peter's observation impossible if
Do the calculations

The hymn lottery — what are the odds?
Now for the calculations. First, we need to estimate the chance that the four hymn numbers contain exactly ten digits. Then we need to work out the chance that every digit is different.
In our book of 999 hymns, every number will have either one, two or three digits. The only combinations that give a total of ten digits are
Given the hymns have ten digits in total, what is the chance they are all different? If all digits were equally likely, the chance of them all being different would be
Refining the model
Our simple model has obvious deficiencies. For example:
- The number zero will arise less frequently than other digits, maybe 2/3 as often;
- Some hymns are far more, or less, popular than others;
- Christmas carols, doubtless numbered consecutively in a hymnbook, will never be selected for most of the year. Other blocks of hymns will be used only at baptisms, Easter, Harvest etc.;
- For hymnbooks in which
, the frequencies of 1, 2 or 3 digit numbers will be different from those assumed; - The numbers chosen can't be completely independent, as they are drawn from a finite population without replacement — and other factors may affect the independence assumption too.
Point 3 is a reminder that we should explicitly assume that the service in question is a standard Sunday service, and not at Christmas, for example.
The impacts of these refinements do not all work in the same direction! Whenever the digits are not all equally likely, that reduces the chance that they are all different. For example, as well as there being fewer zeros, if the carols are numbered (say) 425 to 488, then removing them from the selection available to the vicar would dramatically decrease the frequency of digit 4. On the other hand, if there are fewer than 999 hymns, or if that block of carol numbers is cast aside, the frequency of three-digit numbers will decrease, making it more likely that four hymns will have exactly ten digits. Selecting all the hymns from one short section of the book would make Peter's observation virtually impossible, but deliberately spreading them uniformly over the book would increase the chance.
So suppose the true frequency that digit
Now, selecting ten digits independently, the chance they are all different is
How much does it affect the answer if the ten digits are not equally likely? Take

What's Christmas times Easter minus baptism?
Now suppose that 100 of the three-digit numbers are eliminated, either because they are carols or hymns for other special occasions like Easter or baptism, or because the book has fewer than 999 hymns. The chances of the hymn numbers having 1, 2 or 3 digits are then
Overall, unless the number of hymns is radically different from 1000, or a substantial number of them would be selected only on special occasions, the joint impact of these refinements is very little: we still offer 1 in 40,000 as the ball-park chance of Peter's observation for a random Sunday.
Simulations
There is another way of estimating the chance of a coincidence such as this one, namely to do a computer simulation. Select four hymns at random with the carols deleted, and repeat the exercise ten million times.
We chose the Methodist Hymnbook (1933), which has
This suggests that, if you attend 40 "ordinary" services per year, you might expect to wait about 1000 years before sharing Peter's experience. That's a heck of a lot of sermons to sit through!
More coincidences

There's bound to be a coincidence in here, somewhere.
There is a different way of looking at coincidence questions such as this one. Peter's email would have seemed just as interesting if he had said: "All four hymns were prime numbers" (the chance of this is actually about 1 in 1,000, depending on the hymnbook). And it might have been even more interesting if the hymn numbers had been 11, 22, 111 and 222 for example. So while the chance of one particular interesting coincidence was 1 in 40,000, the chance of some unspecified interesting coincidence in the numbers will be considerably higher, and impossible to calculate.
Indeed, as David Wells' famous Dictionary of curious and interesting numbers makes clear, the vast majority of numbers between 1 and 1,000 are curious or interesting in their different ways, making the chance of a mathematician finding something of interest in next Sunday's hymn list something close to 100%!
About the authors
![]() | John Haigh teaches maths at Sussex University, and Rob Eastaway is currently President of the Mathematical Association. Their book, subtitled The hidden mathematics of sport was republished under its new title Beating the Odds in August 2007. |
![]() |