The mod 2 case is related to the <a href="https://en.wikipedia.org/wiki/Sierpinski_triangle">Sierpinski triangle</a>.