A Collatz Sequence in Flip
The following is a Flip program (seen via Good Math, Bad Math) to print out the Collatz sequence starting with 27:
\ /\
/9X3\
\ *\
.
#
/ /
/ \ /' \
/X *
@ ~ \.'''/
pX X
~
\ X\
/ /
v #X ~'#.\
/ >,, ^
\ ''''X / # \ ~
\ >, \ < '
0 0 '
^ # < #
\. X /\/Q
Addendum: It looks like bleeping Windows XP is incompatible with ANSY.SYS.
0 Comments:
Post a Comment
<< Home