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
11 14
12 9
13 9
14 17
15 17
16 4
17 12
18 20
19 20
20 7
Page 2 of 10