Introduction
Here is a little thought I had the other day:
If we got rid of the number 4, what would happen?
Now, I don’t mean that we switch to base 9 and use the symbols 0, 1, 2, 3, 5, 6, 7, 8, 9 for our numbers (though that would be a fun way to confuse people). My disdain for the number 4 runs deeper than this. I want to know what happens when we continue to do math as normal, but we remove all 4’s from existence.
The clearest way of demonstrating what I mean is to look at doubling a number . Normally, doubling gives us . We can write this as if you want to use some more fun math notation.
Definition
What I am proposing, for lack of a better way of writing it, is that doubling instead gives us . In English, you double and then cut out all of the resultant fours. For the sake of future shorthand, I will call this doubling function .
Here are a few examples to help understand what it means to truly experience freedom from fours fury:
- : Double 1 to get 2. Nothing new here.
- : Double 2 to get 4, but we remove the 4 and are left with 0.
- : Double 32 to get 64, remove the 4 to get 6.
- . That one is pretty self explanatory.
Notice, by simplying culling fours from our figures, we no longer have a monotonically increasing function! In fact, repeated applications of don’t necessarily increase the number.
Chains
Check a few numbers by hand and you’ll find that if you repeatedly apply to a number , it seems to always collapse to 0, and rather quickly, too. Here is one of my favourite chains produced by a relatively small :
- .
I am using instead of above to make it easier to read and a bit more visually appealing. We see that 9 collapses to 0 after 8 applications of . We can express this as . It’s a fair bit cleaner that way.
Let’s also define what a chain is now, even though I’ve already been using it. A chain is a sequence of numbers where is the first value for which . The chain produced by 19 has length 8, as seen above. The length of the chain can be written as
We can also talk about the longest chain up to a certain number , which is the longest chain that can be produced starting at some number .
Here are the chains of the REAL one digit numbers.
| Digit | Chain length | Chain |
|---|---|---|
| 0 | 0 | 0 |
| 1 | 2 | 1, 2, 0 |
| 2 | 1 | 2, 0 |
| 3 | 4 (ew) | 3, 6, 12, 2, 0 |
| 5 | 3 | 5, 10, 20, 0 |
| 6 | 3 | 6, 12, 2, 0 |
| 7 | 3 | 7, 1, 2, 0 |
| 8 | 6 | 8, 16, 32, 6, 12, 2, 0 |
| 9 | 6 | 9, 18, 36, 72, 1, 2, 0 |
An aside for art
Let’s do something a bit more visually interesting for a moment and create a graph that shows all of these chains.

This is what I call a “doubling graph” of the numbers 0 through 19. It shows the chains for numbers 0 through 19 and how they connect to each other. All of these numbers eventually reach 0.
In fact, the header image at the top of this page is a view of the doubling graph of the numbers 0 through 1000, and they all eventually collapse to 0, too.
Hypothesis
After playing around with this for a while, I have come up with the following conjecture.
Conjecture 1: For all numbers , repeated applications of will eventually cause it collapse to 0. In otherwords, for each , there exists some such that .
This seems to be the case to me because it takes just over 3 doublings to gain a digit () but only one unlucky occurrence of a 4 to lose a digit. The only counterexample to this conjecture, aside from some exploding to , is if there were some loop where repeated applications of looped back around on itself. Essentially, that for some . The odds of this seem to me to be almost just as low as some managing to explode.
An exhaustive search
I checked all numbers up to 100,000,000 with some fairly unoptimized Python code and found that every single one collapsed to 0 eventually. The longest chain in this search that I found was for 99,999,995 with a chain length of 28. The biggest number in this chain is .
In my exploration, I noticed that the longest chain starting under is usually pretty close to , as seen above with the longest chain I found in my exhaustive search, but with a few key exceptions. Here are the first few powers of 10 and their longest chain.
| Limit | Longest chain | Starting number for longest chain |
|---|---|---|
The only instance we have here of and having the same longest chain is and with 99 being the longest in both cases. On a whim, I decided to check 999 and found that . So, you could write that the starting number for the longest chain is indeed 999 rather than 99.
I wonder how long all the other chains for are?
| Starting number | Longest chain |
|---|---|
Another hypothesis
The first few lengths here seem to line up with the longest chains from the previous table. That leads me to my next conjecture.
Conjecture 2: The longest chain produced by a starting number under is exactly the length of the chain produced by . In other words, for all .
This makes intuitive sense to me after playing around with a few of these, as 9 takes a while to start producing 4’s.
Conclusion and questions
I won’t be proving either of these conjectures today, as fun as it was exploring this topic. The proofs (or proofs to the contrary) will be left as exercises for the reader.
All of the code I used to produce these figures and tables will be available on my GitHub. If you are reading this sentence, I have yet to upload it, but you can check out some of my other projects on my GitHub page.
Thanks for reading.
