hailstone-sequence
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:a simple scheme program to print hailstone sequence
# hailstone-sequence

hailstone sequence is a sequence of numbers generated by recursively applying
the function 'f' on 'n' defined as
    f(n) = { n/2; if n is even | 3n + 1; if n is odd }


'hailstone-sequence' program prints the longest hailstone sequence for an
integer N provided through command-line as '-l N' or '--longest N'

# more details

Wikipedia.org page for [Collatz Conjecture](http://en.wikipedia.org/wiki/Collatz_conjecture)

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。