Returns a matrix of 0s and 1s that form a Sierpinski
carpet. This is a two dimensional fractal, which is generated
using a recursive algorithm that is built on a grid of eight
black squares surrounding a white square. Each level of
recursion replaces each black square by the same pattern.
Usage
sierpinski(n = 5)
Value
a square matrix with 0s and 1s.
Arguments
n
an integer value controling the number of recursive
levels.