The file HAILV16.LZH [30 KB] is available for download. It consists only of the files HAIL.EXE and HAIL.TXT. These enable a student of the behaviour of numbers to consider the sequence of numbers generated by the process: argument=argument/divisor if result is an integer, or argument=argument*multiplier+increment if it is not. It is believed that whatever the argument, the sequence oscillates for a while, but finally converges to a minimum value. This means that its behaviour is not chaotic. The Computer Recreations column of Scientific American discussed the simplest case in its issue of January 1984, and again in passing later in that year. This case iterates 3*n+1 if n is odd, and n/2 if n is even. The sequence converges to a minimum value of unity. The outcome looks trivial, but it is not, and the properties of the resulting sequences are still not fully understood. The second article pointed out the tendency for runs of equal peak values to occur from consecutive starting points. The program allows the user to select integer values for the argument, divisor, multiplier and increment. A wide variety of choices allows all possible searches to be made. Not more than two path lengths are the same, but many peak values are equal. Finding higher values may take some time. A user might try as argument 138,367. Its sequence peaks at 2,798,323,360 and it returns to unity after 162 iterations. Or try 230,631. This argument generates a sequence peaking at 76,778,008, but takes 442 iterations to count up then back to unity.
Figure 1 shows the screen which results from a search of peak values up to an argument of 225. argument=1 |