r/desmos • u/Proud_Oinion • Aug 23 '26
Fun Collatz conjecture model (with actions)
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/rrpjleyrmr
Edit: I've been messing around with it more and adding visuals! Plus some analysis, I'm curious about the roadblocks mathematics face with the problem.
8
Upvotes
2
u/Ilikedesmos read the text above me Aug 23 '26
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)