What is Collatz Conjecture?

It's an unsolved problem in mathematics. The question is: Does the Collatz sequence eventually reach 1 for all positive integer initial values?

It concerns a sequence defined as follows: start with any positive integer n. Then each term is obtained from the previous term as follows: if the previous term is even, the next term is one half the previous term. If the previous term is odd, the next term is 3 times the previous term plus 1. The conjecture is that no matter what value of n, the sequence will always reach 1.

In other words, for any positive integer:

Thanks to Wikipedia for most of the above content!

For more on Collatz Conjecture, check out this Numberphile Video

Why did I Make an Application?

To use chart.js to visualize the sequence, and to allow experimentation using ASP.NET Core Razor Pages.

Let's Experiment!

Note that when experimenting, integer division rounds down. In other words, 10/4 is 2, and 9/2 is 4.

Steps Graph
91 92
92 17
93 17
94 105
95 105
96 12
97 118
98 25
99 25
Page 10 of 10