### 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:

• If the number is even, divide it by two.
• If the number is odd, triple it and add one.

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!

• If the number is even, divide it by
• If the number is odd, multiply by , and add one.

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

Steps Graph
1 0
2 1
3 7
4 2
5 5
6 8
7 16
8 3
9 19
10 6
Page 1 of 10