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
51 24
52 11
53 11
54 112
55 112
56 19
57 32
58 19
59 32
60 19
Page 6 of 10