Collatz Parity by tails

s/^/1100000000!|/
:1
/!|/h
s/\w/&&&/
s/|/ |/
/1!/{s/ |/#|/;s/1/+1/g}
s/.!/!/
:
s/0+/1/
s/1+/+0/
t
/!.\{65\}/!b1
s/.*!//p
g
/+01/Q
s/!/+!/
b

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

download

return to the top page