Collatz Parity by

<?
for($i=256;$i>-257;$i--){
\x09$c=$i;
\x09for($j=0;$j<64;$j++){
\x09\x09if($c%2){
\x09\x09\x09echo "#";
\x09\x09\x09$c=(3*$c+1)/2;
\x09\x09} else {
\x09\x09\x09echo " ";
\x09\x09\x09$c/=2;
\x09\x09}
\x09}
\x09echo "|\n";
}

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

download

return to the top page