Commentary: Pascal's Triangle Various Mods (Mathematica)

 

            I mostly pieced together this program from others’ work I found online, although I added some of my own touches (sorry for the lack of crediting; I can’t remember where I got it, feel free to contact me if you deserve credit).  There are many applets online for coloring various multiples of Pascal’s Triangle.  My students were playing with them, looking for patterns, and some wanted to test patterns the applets wouldn’t work for, so I assembled this Mathematica version. 

            This program has a lot of flexibility.  In the last command, the user can change the number of rows and the mod.  In the middle, the user can change which remainders are which color  the default is black.  In this example, multiples of 6 are colored white, and numbers that leave a remainder of 3 when divided by 6 are colored red.  Numbers that leave remainders of 1, 2, 4, or 5 are colored black. 

            There are four commands that need to be entered to use the program, and Mathematica is required.  8/05

 

            Mathematica Notebook                        Home