Two weeks ago I posted a puzzle sent to me by my nephew Matthew:
1 is 3, 3 is 5, 5 is 4, and 4 is cosmic.
Why is 4 cosmic? What happens to the other numbers?
As I mentioned in the earlier post, I slept on this before solving it. I initially thought about the riddle “mathematically,” but that was no help.
A mathematical way to think about the phrases involving the word “is” in the statement of the problem is to consider them as mappings. That is, consider a function (or mapping)
So the question is, can we guess a formula for
Thus,
Now, it could be that “cosmic” means that whichever number you begin with, by repeatedly applying the function
The other thing that must be checked is that there are no “cycles” in this action. For example, perhaps
In checking each of these facts, we are helped by knowing that the “word-lengths” of numbers increase much more slowly than the numbers themselves. Numbers less than
Functions that are applied repeatedly amount to iterative procedures, and have many applications. For example, Picard’s theorem is an iterative procedure for solving certain ordinary differential equations. An important method for solving equations of many types is to cast the equation into the form
All kinds of behaviours are possible with maps that are applied iteratively. For example, fractals are generated in this way. Certain dynamical systems are defined via iterative maps; the logistic map is a famous example, and one that provides an interesting entry into this field, as it includes both deterministic and chaotic behaviour, and interesting jumps in behaviour from one type to another depending on the value of a parameter.
One of the most famous unsolved problems involving an iterated map is the Collatz conjecture (also known as the hailstone conjecture), which can be phrased in the form of a game. The game works like this: start with any natural number. If the number is even, then divide it by
Nobody has yet been able to prove that the Collatz conjecture is true or false, but you might have fun exploring it.
(This post first appeared at my other (now deleted) blog, and was transferred to this blog on 21 January 2021.)