Egyptian fractions eaiser fixed by @tttttanaka

[*$<].map{|n|puts n.strip+" = "+[n.split'/'].map(&z=proc{|n|a,b=n.map(&:to_i);b%a<1?"1/#{b/a}":"1/#{c=b/a+1} + "+[[a*c-b,b*c]].map(&z)*''})*''}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top