Start at n, let a(n) be the smallest number in the cycle if it goes into a cycle, or -1 if it diverges. Is this sequence in the OEIS? and if not, you know what to do! Neil