Rust and WebAssembly project that renders a sequence of integers inside HTML canvas element. Integers are obtained from certain arithmetic operations defined by Collatz conjecture.
Collatz conjecture, also known as 3x + 1 problem, is an unsolved problem in mathematics and is named after Lothar Collatz who proposed it in one of his papers in 1937. Begin with any positive integer and generate a sequence as follows: If a number is even, divide it by two. Else, multiply by three and add one. Repetition of this process will eventually reach the value 1. Proof or disproof of this seemingly simple conjecture has remained elusive.
wasm-pack build
npm install
npm run serve