I’ve been brushing up on calculus with Gilbert Strang’s excellent book, and when I got to a part about binomial expansion I decided to do some sort of visualization of Pascal’s Triangle. I didn’t have much success visualizing the whole thing, so I threw together an applet in Processing that lets you see a subset of the triangle at a time.


<!–

This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.

<!–

Here’s how it works: in the text field at the bottom you enter a number. All entries in Pascal’s Triangle divisible by the number you entered will be shown, provided they are in the part of Pascal’s Triangle that’s shown in the applet. The powers of 2 are the most interesting; I like 64. Have fun!