CodingTrain / CodingTrain/Suggestion-Box

Collatz Conjecture Visualization

Aperta
#151 1 commento 9 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Nessun dato sulla lingua
Stelle
570
Fork
85
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.