The Collatz Tree - a simple Processing animation

// The Collatz Tree - a simple Processing animation The Collatz sequence is defined as follows: given a positive integer N apply this rule: if N is even then divide it by 2, if N is odd then multiply it by 3 and add 1. Continue repeating the same rule to the new generated numbers, until we reach 1. The Collatz Conjecture is that no matter what value of N, the sequence will always reach 1. The sequences can be arranged in a tree-like graphic visualization. Slowing changing the parameters of the tree, results in a simple hypnotic abstract animation. For further details see the Algoritmarte article:
Back to Top