The Mandelbrot Set

Depth:
Algorithm for Approximating the Mandelbrot Set, M
- Select a number c in the complex plane and a positive integer D (depth).
- Form the sequence: {c, c2+c, (c2+c)2+c, ((c2+c)2+c)2+c, ...}.
- Shade c if the first D numbers in its sequence have length less than 2.