Sometimes you can tell a question is probably going to be deleted, but it's fun to look for an answer anyway........ This is one of those cases, the question was deleted but here is the answer:
This link should cover your needs. J.M. wrote a nice compact function to create the Sierpinski triangle:
With[{n = 8},
NestList[(# /.
poly : Polygon[pts_, ___] :>
Map[Function[p, Translate[Scale[poly, 1/2, {0, 0}], p/2]],
pts]) &,
Graphics[{Polygon[{{Sqrt[3]/2, -1/2}, {0,
1}, {-Sqrt[3]/2, -1/2}}]}], n]
]