Let's spend some time with the Collatz conjecture

Let's spend some time with the Collatz conjecture

About a week ago I decided to spend some time on the Collatz conjecture. In 1937 a German mathematician, Lothar Collatz, proposed an apparently simple algorithmic idea. Take any natural number N: if even, then divide it by 2, otherwise, multiply it by 3 and add 1 to the result. Repeat this process. The conjecture postulates that 1) this process will converge 2) and it will always converge to 1, no matter the starting N (up to repeated cycles). Ninety years later there is still no actual proof of whether or not this procedure will converge for any N. Why? Nobody is entirely sure, not even Terence Tao, perhaps the greatest mathematician of my generation, who stated "You can get as close as you want to the Collatz conjecture, but it’s still out of reach", after trying to tackle the proof.

Oh well, I'll certainly not be able to find the proof, but nonetheless last week I really wanted to play this game for a couple of days. And it was marvellously entertaining.

Consider for instance the first 9 natural numbers > 1, and their full sequence:

No alt text provided for this image

The "length with cycles" indicates the number of steps to reach 1. The "length no cycles" is obtained by removing numbers appearing in any prior sequence, ie the red numbers. Also, the green numbers appear in some previous iteration. Typically, you want to plot the starting number N against its length (with cycles), producing the following graph

No alt text provided for this image

for the first 10^5 numbers. However, if you plot unique starting numbers against the length with no cycles, then you will generate a rather different picture

No alt text provided for this image

where the bottom chart shows a type of diffusion evolution, with compactification in the smaller region. This shape will be preserved as you will increase N. Interestingly enough, the 10 largest sequences, with only unique entries are

No alt text provided for this image

where you may have large prime numbers, like 96703, or multiples of 3. This latter feature is, I believe, the reason why Tao focused his attention on samples mod3, ie whose remainder is either 1 or 2.

The appearance of symmetries is actually what drove my attention in the first place. The most simple one is the recurring pattern of 4,2,1 when ending any sequence. However 2 other slightly larger repeating patterns are "10,5,16,8,4,2,1" or "64,32,16,8,4,2,1", which occur respectively 93.74% and 6.25% at least in the first 10^5 starting numbers.

Anyway, one could literally spend a lifetime on this game...

As usual, have fun!

Kin B.

Real Estate Agent San Ramon California

10 个月

Love your approach of recording lengths with no cycles. Haven’t seen that before. You can play this game for a lifetime indeed. I’ve been at it for close to 3 years. I believe this puzzle is considered dangerous. Want to get sucked in for a round 2 of exploring this mysterious riddle? If you apply a slightly different set of rules you get parallel sequences: 3n+1 remains the same. Plug in negative even numbers. If odd subtract 1 and divide by 2. If even multiply by 3 and add 1. There’s more… but this was by far my most exciting discovery.

Eugenio Angelillo

Engagement Manager @ IQVIA Italia | Salesforce Solution Architecture

2 年

Any practical usage of this serie?

回复

要查看或添加评论,请登录

Marco Ghiotti的更多文章

  • The Tolkienesque fascination of trees in the UK

    The Tolkienesque fascination of trees in the UK

    JRR Tolkien was deeply in love with trees, and so are the UK towns. Or at the very least their toponymy.

  • Solar flares as a sequence of ones

    Solar flares as a sequence of ones

    Consider the following equation: where n can be any integer larger than 1 and all the coefficients of this polynomial…

  • An Escher fish from prime numbers

    An Escher fish from prime numbers

    The complex roots of the 2nd-order polynomial a*x^2 + b*x + c = 0, where a, b and c are prime numbers, either positive…

  • Integers in the undergrowth

    Integers in the undergrowth

    This is what happens when you are a bit crazy. Take an integer, say 2024.

  • The unusual relationship between 1 and π

    The unusual relationship between 1 and π

    About 3 years ago Numberphile posted an extremely interesting video on the unexpected relationship between 5 and π…

    1 条评论
  • What if irrational numbers had a random component

    What if irrational numbers had a random component

    The Planck length (Lp) is that tiny quantity, around 1.6 x 10-35m, which is regarded by theoretical physicists as the…

    7 条评论
  • Which is bigger 100^99 or 99^100?

    Which is bigger 100^99 or 99^100?

    You might have seen this question float around, which can be generalised to the following: Exponentials tend to prefer…

  • On the parity in other number systems

    On the parity in other number systems

    According to our best understanding of evolution by natural selection, there is no clear explanation of why we humans…

  • Some thoughts on the Catalan-Dickson conjecture

    Some thoughts on the Catalan-Dickson conjecture

    The Catalan-Dickson conjecture may be proven as soon as fast computers will be able to handle extremely large integers.…

  • Bayesians vs Frequentists, the holy war of statistics

    Bayesians vs Frequentists, the holy war of statistics

    If you are a sane person, and I bet you are, you've probably never heard of the fascinating debate amongst…

    1 条评论

社区洞察

其他会员也浏览了