6N plus minus one by jonathan camacho

while(<>){chomp;$r=$_%6;$t=$r==5?$_+1:$_-1;
printf("%d = 6 * %d %s 1\n",$_,$t/6,$r==5?"-":"+")}

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

download

return to the top page