The Menger Sponge is the union of N=20 essentially disjoint scaled copies of itself, with scaling ratio r=1/3 in the x, y, and z directions. The dimension of M is calculated by the following cell.
Input := dimension[20,1/3]
Output = 2.72683