From: ani boy Date: 2012-02-08T19:50:29+09:00 Subject: Re: Simple even and odd number loop in Ruby please is there any ideas on how to do this for a range of number say 2 to 5 and them count the number of counts before it ( that is the numbers 2,3,4,5 )gets to 1. after that be able to get the number with the largest count? for instance 3 gives count as follows 3,10,5,16,8,4,2,1 and for instance 4 gives count as follows 4,2,1 therefore between 2 to 5 the largest count is 8 which is produced by number 3 -- Posted via http://www.ruby-forum.com/.