Pascal's Triangle Residues

The patterns in this are pretty cool and I thought it would be fun to write up a little program to generate the visualizations on the fly. To get an introduction to the sorts of things you might look out for, I would encourage you to go check out the math less travelled post that inspired me, then come back and explore the triangles.