TOPICS
Search

Cantor Set


CantorSet

The Cantor set T_infty, sometimes also called the Cantor comb or no middle third set (Cullen 1968, pp. 78-81), is given by taking the interval [0,1] (set T_0), removing the open middle third (T_1), removing the open middle third of each of the two remaining pieces (T_2), and continuing this procedure ad infinitum. It is therefore the set of points in the interval [0,1] that admit a ternary expansion containing no digit 1, illustrated above. Both endpoints remain at every stage. In particular, the endpoint 1 has the ternary expansion (0.222...)_3.

The nth iteration of the Cantor set is implemented in the Wolfram Language as CantorMesh[n].

Iterating the string rewriting system 1 -> 101, 0 -> 000 starting with 1 gives the sequence 1, 101, 101000101, 101000101000000000101000101, .... The sequence of binary bits thus produced is therefore 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, ... (OEIS A088917) whose nth term, indexed from n=0, is given by D(n,n)mod3=P_n(3)mod3, where D(n,n) is a central Delannoy number and P_n(x) is a Legendre polynomial (E. W. Weisstein, Apr. 9, 2006). The recurrence plot for this sequence is illustrated above.

The Cantor set consists of the real numbers x that can be written as

 x=(c_1)/3+...+(c_n)/(3^n)+...,
(1)

where c_n may equal 0 or 2 for each n. This is an infinite perfect set. For a nonnegative integer n, the total length of the line segments in the nth iteration is

 l_n=(2/3)^n,
(2)

and the number of line segments is N_n=2^n, so the length of each element is

 epsilon_n=(l_n)/(N_n)=(1/3)^n
(3)

and the capacity dimension is

d_(cap)=-lim_(n->infty)(lnN_n)/(lnepsilon_n)
(4)
=log_32
(5)
=(ln2)/(ln3)
(6)
=0.630929...
(7)

(OEIS A102525). The Cantor set is nowhere dense, and has Lebesgue measure 0.

More generally, a nonempty perfect set in the real line that is nowhere dense is uncountable and may have 0 or positive Lebesgue measure. The Cantor set is, up to a homeomorphism, the unique nonempty totally disconnected, compact metric space that is a perfect set (Willard 1970; Calegari 2025, pp. 8-9).


See also

Alexander's Horned Sphere, Antoine's Necklace, Cantor Dust, Cantor Function, Closed Set, Goffinet Dragon, Scrawny Cantor Set, Ternary Explore this topic in the MathWorld classroom

Portions of this entry contributed by Margherita Barile

Explore with Wolfram|Alpha

References

Barber, G. "Teen Mathematicians Tie Knots Through a Mind-Blowing Fractal." Quanta Mag., Nov. 26, 2024. https://www.quantamagazine.org/teen-mathematicians-tie-knots-through-a-mind-blowing-fractal-20241126/.Boas, R. P. Jr. A Primer of Real Functions. Washington, DC: Amer. Math. Soc., 1996.Broden, J.; Espinosa, M.; Nazareth, N.; and Voth, N. "Knots Inside Fractals." 5 Sep 2024. https://arxiv.org/abs/2409.03639.Calegari, D. "Topics in Point Set Topology." Mar. 7, 2025. https://math.uchicago.edu/~dannyc/notes/point_set_topology.pdf.Cullen, H. F. Introduction to General Topology. Boston, MA: Heath, pp. 78-81, 1968.Gleick, J. Chaos: Making a New Science. New York: Penguin Books, p. 93, 1988.Harris, J. W. and Stocker, H. "Cantor Set." §4.11.4 in Handbook of Mathematics and Computational Science. New York: Springer-Verlag, p. 114, 1998.Lauwerier, H. Fractals: Endlessly Repeated Geometric Figures. Princeton, NJ: Princeton University Press, pp. 15-20, 1991.Sloane, N. J. A. Sequences A088917 and A102525 in "The On-Line Encyclopedia of Integer Sequences."Trott, M. The Mathematica GuideBook for Graphics. New York: Springer-Verlag, pp. 9-13, 2004. https://www.mathematicaguidebooks.org/.Willard, S. §30.4 in General Topology. Reading, MA: Addison-Wesley, 1970.

Referenced on Wolfram|Alpha

Cantor Set

Cite this as:

Weisstein, Eric W., with contributions by Margherita Barile. "Cantor Set." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/CantorSet.html

Subject classifications