Advertisement

Calculating the collatz sequence of every number between 1 and 500 using processing

Calculating the collatz sequence of every number between 1 and 500 using processing The Collatz conjecture is a conjecture in mathematics that concerns a sequence defined as follows: start with any positive integer n. Then each term is obtained from the previous term as follows: if the previous term is even, the next term is one half the previous term. If the previous term is odd, the next term is 3 times the previous term plus 1. The conjecture is that no matter what value of n, the sequence will always reach 1
______________________
Programmed in processing by me, the spaghetti code master™️
______________________
Music from
"Amazing Plan" by Kevin MacLeod (
License: CC BY (
______________________

Twitter


Channel Playlist
▶️

Contact / Suggestions
polyhedronproductionsyt@gmail.com

collatz,collatz conjecture,number theory,

Post a Comment

0 Comments