in reply to 1-D Cellular Automata
Sierpinski sieve:
Now, why does this work? Because binom(m, n)(mod 2) = n XOR m, so this is just Pascal's triangle (mod 2).#!/usr/bin/perl -wl $_="co"; while (1) { s/..(?=c)/$&^"CO"/eg; s/^/ /; print; }
Update: Will work now.
In Section
Cool Uses for Perl