Collatz congecture

does anybody know how to make a collatz congecture in desmos?i get that its hard,but you could start using that method for checking the amount of something

1 Like

Here it is! Also, the most elements of a I have found was 9381. It gives 153 list elements.

Edit: 193819382893 gives 384 elements!

thank you very much!

1 Like

thank you! also 314159265358979300 gives 397

1 Like

Somehow 194859859344775784589433030489050358765 only gives 360

67 gets 27,which brings up the question of the max ratio of simulations:starting value
edit #1:27 takes 111 simulations
edit#2:1000011 takes 113,and is binary

1 Like

Challenge for you:

Could you make a function, say g(x), that returns the number of iterations that it would take to get x to the “repeat” (the 4, 2, 1 repeat) using the Collatz Conjecture?

I learned that 75128138247 takes 1228 iterations using Google

i dont know how to proform the len(x) function in desmos,sorry

1 Like

In the regular calculator you can use count(), .count, length() or .length. Either count is better to use because copying to or from the geometry calculator can end up with errors using length, which is for the measurement of segments in that calculator.

No, I meant like you plug in any value and it knows how long the numbers list will be.

Edit: Just realized that this is basically impossible right now

“No Known Pattern or Formula There’s no known way to predict how long a number will take to reach 1 (called its “total stopping time”) or how high it will go. This lack of structure makes the behavior seem random, even though it’s entirely deterministic.” (Credit: CopilotAI by Microsoft)

i mean,you could run it and then do the length

1 Like

I guess, but that wouldn’t really be an actual function.

yeah.i wish the graphing calculator had a bit of python

1 Like

it would be interesting if you graphed that relationship

1 Like

What relationship? The number of iterations to greatest number?

no,
n
(summation simbol (number of itterations starting with y))/|n-y|
y
i just learned summation. my life is worse after trying to use it in 7th grade class today

1 Like

\frac{\left(\sum_{n=d}^{z}\operatorname{length}\left(n_{umbers}\right)\right)}{\left|d-z\right|+1} is a example starter

1 Like