Longest hailstone sequence given a range