def odd(number)
  num = number
  ary = []
  while num >= 1
    ary = num
    num -= 1
  end
  odd = ary.each_slice(2).map(&:first)
  even = ary.each_slice(2).map(&:last)
  odd.count/even.count.to_f
end

odd(5)
    