This program generates the hailstone sequence for a given number n. Begin with a number n. Now, at each step: * Check if n is even. * If n is even, divide n by 2. * If n is odd, multiply n by 3 and then add 1. If n=1, stop this procedure. This program can be used to help investigate the Collatz conjecture. Press space to learn about hailstone numbers.