The Sierpinski Curve



Right-click here to download this page and the Java Class File.

The Java applet above draws the Sierpinski curve of order n = 0 to 6.
Each order of the Sierpinski curve consists of 4 copies of the curve of the previous order replicated on a smaller scale and joined at the centre.
orderlength of Sierpinski Curve
04 (sqrt(2)/4)1.414
14 (3 x sqrt(2)/8) + 4 x 1/43.121
24 (11 x sqrt(2)/16) + 20 x 1/86.389
34 (43 x sqrt(2)/32) + 84 x 1/1612.851
44 (171 x sqrt(2)/64) + 340 x 1/3225.739
54 (683 x sqrt(2)/128) + 1364 x 1/6451.497
64 (2731 x sqrt(2)/256) + 5460 x 1/128103.003
:::
n4 (22n+1 + 1)sqrt(2)/2n+23 + (22n+2 - 4)/2n+13:

orderarea of Sierpinski Curve
01/80.125
11/4 + 4(3/8)/160.344
25/16 + 4(11/8)/640.398
321/64 + 4(43/8)/2560.412
485/256 + 4(171/8)/10240.4155
5341/1024 + 4(683/8)/40960.4164
61365/4096 + 4(2731/8)/163840.4166
:::
n(4n - 1)/4n3 + (22n+1 + 1)/22n+33:

The length of the Sierpinski curve of order n approaches infinity as n approaches infinity, while the area approaches the value 5/12 = 0.41666... .
As n approaches infinity, we obtain the Sierpinski space-filling curve, a continuous curve passing through every point of the enclosing square.