CodingTrain / CodingTrain/Suggestion-Box

Collatz Conjecture Visualization

Open
#151 1 comment 9 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
570
Forks
85
PR merge metrics
No merged PRs in 30d

Description

The Collatz Conjecture states a simple maths algorithm:
1. Take any number and call it _a_
2. If _a_ is even, then set _a_ equal to _a / 2_. Otherwise, if _a_ is odd, then set _a_ equal to _3a + 1_
3. Repeat step 2

This trivial problem is famous because it has never been proven if every plotted integer converges to 1. You could do a problem that desings a tree starting with 1 and building its way up.

Further Reading:
http://swimmingthestyx.com/?p=447
https://www.jasondavies.com/collatz-graph/
https://en.wikipedia.org/wiki/Collatz_conjecture#In_reverse
http://mathematica.stackexchange.com/questions/85718/trying-to-visualize-the-collatz-conjecture

It seemed easy until I started programming it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.