See Wiki for more information about the Sierpinski Triangle fractal.
Also, see the related MS Arcade Barnsley Fern fractal project. I use the same code, just a different matrix and vectors for the affine transformations. Learn more about the math here.