The Menger Sponge

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

Start with a cube, divide it like a Rubik's cube into 27 smaller cubes and remove each central cube to leave 20. Recursively apply this procedure to each of the remaining cubes and you will have successive levels of Menger's sponge, a recursive 3D shape generalizing the Sierpinski carpet—in fact each face of the Menger sponge is a Sierpinski carpet. This Demonstration provides four variations on this idea, starting with the Sierpinski carpet.

Contributed by: Jaime Rangel-Mondragon (March 2011)
Open content licensed under CC BY-NC-SA



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.