Collatz Conjecture

My 7 year old is fascinated with numbers. Recently he learned about the Collatz Conjecture, and has since been busy calculating the series for all the numbers from 1-100 in his “Yummy Math Book”. As he was showing me the chart for his latest - the number 27 - earlier this evening, it occurred to me that “I should make a Glide App for this”.

20 minutes or so later, this is the result…

4 Likes

Never heard of the Collatz Conjecture before, but you made me pull out a calculator and it is fascinating. Would be interesting to allow entry of 3 or 4 numbers and have multiple lines on the graph to see how they compare.

Even better, if you could get the steps to “right align”, or populate at the end of the table, you could see where each graph line converges. Might notice patterns with certain combinations of numbers.

1 Like

This is where we learned about it:

This guy makes some great videos, by the way :slightly_smiling_face:

Cool idea. I’m out now, but I’ll make that one of my tasks for tomorrow.

3 Likes

Tried to reply to this in the above, but my phone is being spastic :crazy_face:
hmm, I think that should be doable. Will take a look.

One thing I will say is that I was surprised at how blindly fast it is at calculating the series. It’s just done with a simple JavaScript function that I spent about 2 minutes writing, so I’m sure it could be optimised. Although, I haven’t tried it with 10^200 yet, that might melt my phone :rofl:

1 Like

I do follow Veritasium and watch their videos every once in a while. Vsauce is a good one too, or SmarterEveryDay. Good content when I want to feel smart…or dumb :smirk:. Interesting video though. Interesting seeing all the patterns that form.

Now I want to see your kid (and you) solve the problem with a Glide app. I think your phone could handle that amount of processing, right? :melting_face:

1 Like

Yep, we also watch all 3. Some of the stuff he builds on Smarter Every Day is just insane. His engineering skills are from another world!

heh, I think not :rofl:

Anyway, just made a few tweaks as per your suggestions. Give it a try now…

oh… there seems to be a bug with the Chart component where it doesn’t render the X Axis labels correctly in the mouse-over, or at all in the Legend. Annoying :angry:

Try 27 and 125

1 Like

Boy I could spend all day plugging in numbers and looking for patterns. I like the reverse chart feature and seeing where steps converge.

1 Like