The Number 2,187 Is Lucky—Here's Why

It has a host of surprising properties, although it is not necessarily “lucky” in the usual sense of the word

Join Our Community of Science Lovers!

In remembering Martin Gardner on what would have been his 100th birthday this month, we recalled a 1997 article he wrote for The Mathematical Intelligencer. In that piece he asks his imaginary friend Dr. Irving Joshua Matrix—“the world’s most famous numerologist” and a recurring character in his Scientific American Mathematical Games column—about 2187, the house number of Gardner’s childhood home in Tulsa, Okla. Dr. Matrix instantly regales Gardner with a raft of facts about the number 2,187. It is 3 raised to the power of 7 and 10,000,000 written in base 3 notation; subtract 2,187 from 9,999 and you get 7,812, its reversal; multiply 21 by 87 to yield 1,827, or 27 by 81 to get 2,187 again. “Every number has endless unusual properties,” Dr. Matrix comments, adding that 2,187 is also a lucky number.

Lucky numbers are distant cousins of prime numbers, those divisible only by themselves and 1. Although different in many ways, both can be generated using what are known as sieves. Greek mathematician Eratosthenes devised a famous sieve for sifting out primes from the positive integers in counting order: First cross out all multiples of 2, except for 2, then cross out all multiples of 3, then 5, 7, 11 and so forth. Carry on to infinity and you will be left with a pile of all the primes. Polish-American mathematician Stanislaw Ulam came up with another sort of sieve in the mid-1950s: Again starting with the positive integers in counting order, cross out every second number, leaving the odd ones. The second surviving number is then 3; so cross out every third number not yet eliminated. The third surviving number is then 7; so cross out every 7th integer. The fourth survivor at this point is 9; so eliminate every 9th integer and keep going. Ultimately certain numbers forever escape the sieve, which is why Ulam called them lucky.

Lucky and prime numbers share some curious sieve-family traits. For instance, there are 25 primes and 23 luckies less than 100 and there are eight twin primes (which differ only by two) and seven twin luckies less than 100. One of the most famous unsolved problems involving primes is Goldbach’s conjecture, which states that every even number greater than 2 can be expressed as the sum of two primes. Also unsolved is the similar proposition that every even number is the sum of two lucky numbers.


On supporting science journalism

If you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.


Here’s another interesting fact about 2,187—the sums to the right of the equal signs below area all permutations of the numbers that were added to 2,187 on the left.

2187 + 1234
 = 3421
2187 + 12345 = 14532
2187 + 123456 = 125643
2187 + 1234567 = 1236754
2187 + 12345678 = 12347865
2187 + 123456789 = 123458976

Feeling lucky? Share any fun findings of your own about lucky numbers in the Comments section below.

It’s Time to Stand Up for Science

If you enjoyed this article, I’d like to ask for your support. Scientific American has served as an advocate for science and industry for 180 years, and right now may be the most critical moment in that two-century history.

I’ve been a Scientific American subscriber since I was 12 years old, and it helped shape the way I look at the world. SciAm always educates and delights me, and inspires a sense of awe for our vast, beautiful universe. I hope it does that for you, too.

If you subscribe to Scientific American, you help ensure that our coverage is centered on meaningful research and discovery; that we have the resources to report on the decisions that threaten labs across the U.S.; and that we support both budding and working scientists at a time when the value of science itself too often goes unrecognized.

In return, you get essential news, captivating podcasts, brilliant infographics, can't-miss newsletters, must-watch videos, challenging games, and the science world's best writing and reporting. You can even gift someone a subscription.

There has never been a more important time for us to stand up and show why science matters. I hope you’ll support us in that mission.

Thank you,

David M. Ewalt, Editor in Chief, Scientific American

Subscribe