collatz_conjecture

Crates.iocollatz_conjecture
lib.rscollatz_conjecture
version0.1.2
sourcesrc
created_at2021-08-07 14:44:40.273357
updated_at2021-08-08 20:24:56.281263
descriptionA small project demonstrating the collatz conjecture, a maths problem
homepagehttps://sauce420.gitlab.io/collatz_conjecture.html
repositoryhttps://gitlab.com/sauce420/collatz-conjecture
max_upload_size
id432799
size4,620
Jeremy Petch (jemsurfer)

documentation

https://sauce420.gitlab.io/collatz_conjecture.html

README

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.
Commit count: 5

cargo fmt