Egyptian fraction by youz

for(;l=readline();print(l+q))for([n,d]=l.split('/'),l+=" = 1/";q=d/n|0,d%n;n=n*q-d,d*=q)l+=++q+" + 1/"

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

download

return to the top page