1.upto(?Ã){|n|n+=M until n==M=n.to_s.reverse.to_i p n}