Press the green flag and it will generate rainbow tree/bush.
How it works: If a number is even it gets divided by 2 If a number is odd it gets multiplied by 3 and added to 1 This keeps going until it meets the number 1 All numbers that are put through the equation, will all come to 1. 13 = odd (3x+1) 40 = even (x/2) 20 = even (x/2) 10 = even (x/2) 5 = odd (3x+1) 16 = even (x/2) 8 = even (x/2) 4 = even (x/2) 2 = even (x/2) 1 How the tree generates: If the number is odd it is turned left if the number is even it is turned right Every iteration it moves 5 steps Keep repeating until it meets 1.