Egyptian fraction by leonid (clock)

#!ruby -lpaF/
b=eval"A="+$F*$/
b*=C while$_<<" + 1/#{C=0--b/A}"&&0<A=A*C-b
sub'+','='

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

download

return to the top page