Skip to content

Collatz Conjecture (REPL) visualiser CLI application

Notifications You must be signed in to change notification settings

theiskaa/3Nplus1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Collatz Conjecture (REPL) visualiser CLI application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages