Euler problem 14 is all about Collatz numbers. I am aware of Atabey Kaygun’s posts, but I found a nice implementation in Scheme on SO today.