#demo #problem #collatz #conjecture #demonstrating #become

app collatz_conjecture

A small project demonstrating the collatz conjecture, a maths problem

3 releases

0.1.2 Aug 8, 2021
0.1.1 Aug 7, 2021
0.1.0 Aug 7, 2021

#727 in Math

22 downloads per month

GPL-3.0 license

5KB
54 lines

The Collatz Conjecture, or 3x+1

This is a program to practice my rust skills and demonstrate an interesting maths problem called the Collatz Conjecture.

Explanation

The collatz conjecture is a maths problem with 3 simple rules:

  • If the number is odd, multiply by 3 and add 1.
  • If the number is even, divide by 2.
  • Once the number reaches 1, stop, because 1 becomes 4, which becomes 2, which becomes 1.

Dependencies

~12KB