There are 1 repository under hailstone-sequence topic.
An interactive python based program for hailstone sequence calculation, the numbers that increase and decrease but eventually settles into a repeating pattern of the numbers 4, 2, 1. The sequence is generated by starting with any positive whole number greater than zero. Also plot graphs which reveals the true beauty of conjecture
Realisation of Collatz conjecture (or 3n+1 problem) written on go.
collatz is a CLI for printing the hailstone sequence of a number.
This program takes a positive integer parameter as the initial number of a hailstone sequence and returns how many steps it takes to reach 1.