$input = 248832 for i in 1 .. 8 do root = $input ** (1.0/i) puts "#{i} #{root}" end print "\n"