Help for this page

Select Code to Download


  1. or download this
    $ perl -e '($n,$d)=split"/",pop;{1while++$x<$d/$n;warn"1/$x\n";$n=$n*$
    +x-$d;$d*=$x;redo if$n}' 18/20
    1/2
    1/3
    1/15
    
  2. or download this
    for(($n,$d)=split"/",pop;$n;){1while++$x<$d/$n;warn"1/$x\n";$n=$n*$x-$
    +d;$d*=$x}
    
  3. or download this
    perl -e '$f=eval pop;{1while++$x<1/$f;warn"1/$x\n";redo if$f-=1/$x}' 1
    +9/20