HailStoneJS2012 - Stage 3

Going to Hail in a Handbasket

The HailStone sequence is a list of numbers which begins with a positive integer 'seed.' Even seeds are divided by two; odds, multiplied by 3 and increased by one. Subsequent values are treated similarly. Curiously, the sequence always ends by reaching '1'. (If you continue past that, you get a repeating pattern of 4-2-1-4-2-1 etc). This raises the question: Will all sequences of this nature always reach one? That problem is currently unsolved. Why is it called the HailStone sequence? Find out here.

We track the maximum height and the length of the sequence (iterations plus 1), its aspect ratio (the ratio of maximum height to initial seed) and its 'jitter': (the number of odd values less one). Unquestionably, there are other patterns to be explored in this mathematical oddity.

Learn more about the sequence here!

Please provide: