# Multiplication Tables Modulo n

The following p5.js program shows a 3-way multiplication table modulo 79 in one-second slices.  The residues modulo 79 are coloured in an increasing and then decreasing LCH colour scale (0 is yellow, 40 is blue-green).  For the first second you see 1*x*y, then for the next second 2*x*y etc.  I have shown only the grid of non-zero x and y, for n=1 through 79.

I’m far from the first person to do this:  see this nice blog post, for example.