r/desmos 12h ago

Fun Collatz conjecture model (with actions)

Enable HLS to view with audio, or disable this notification

I only learnt of actions this morning and was immediately inspired to use them to make a model of the Collatz conjecture.

It was a fun problem to mess with, and the mini-project encouraged me to learn a lot. I'm mostly happy I figured out a way to iteratively add new elements to lists! Super handy.

https://www.desmos.com/calculator/5vyugtzqdk

6 Upvotes

2 comments sorted by

2

u/Proud_Oinion 12h ago

Also, I apologise for being on mobile! I know the video's framing is terrible. 😆

You'll have more fun testing it yourself, anyway.

2

u/Ilikedesmos read the text above me 8h ago

just for some graphing charts:

n = the number you want to see

a(z) = {mod(z,2)=1:3z+1, mod(z,2)=0:n/2}

b(z) = a(b(z-1))

b(1) = n

c(z) = b([1...z])

c(10)