Fractals from a Generalized Bitwise AND

For a number of years the author was fascinated by the following six lines of QBasic code, which produce an image (Figure 1) reminiscent of the Sierpinski triangle.