Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 1.65 KB

README.md

File metadata and controls

27 lines (23 loc) · 1.65 KB

Collatz Conjecture visualiser

A simple application to visualize solving-loop of Collatz Conjectur, takes two arguments N, C.
Where N represents base-positive-number, and C represents looping-count(if it's not provided, application will loop infinitely)

Problem explanation

The 3x + 1 problem is most simply stated in terms of the Collatz function C(x) defined on integers as multiply by three and add one for odd integers and divide by two for even integers. That is,

 C(x) = {
            (if x is ODD) 3x + 1
            (if x is EVEN) x / 2
 }

The 3x + 1 problem (or Collatz problem) is to prove that starting from any positive integer, some iterate of this function takes the value 1. The problem other names: it has also been called Kakutanis problem, the Syracuse problem, and UlamÕs problem.
For more information refer to References header

Visualiser Application (REPL) Overview

References