calculate hailstone sequence
add link to header