Collatz Conjecture

This is a fairly easy one, most should be able to complete since it is well know. It goes like this:

  1. take a number,
    1. half it if it is even, but
    2. if it’s odd you multiply by three and add one.
  2. It should return one at the end.

Create a program that can calculate the sequence for all n > 0 to 10000 (or 100000 (slo))

Collatz Conjecture