Cantor Set

DOWNLOAD Mathematica Notebook EXPLORE THIS TOPIC IN the MathWorld Classroom 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 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] whose ternary expansions do not contain 1, illustrated above.

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

Iterating the process 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 is amazingly given by D(n,n)=P_n(3) (mod 3), 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.

This produces the set of real numbers {x} such that

 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. 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=(1/3)^n
(3)

and the capacity dimension is

d_(cap)=-lim_(epsilon->0^+)(lnN)/(lnepsilon)
(4)
=log_32
(5)
=(ln2)/(ln3)
(6)
=0.630929...
(7)

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

A general Cantor set is a closed set consisting entirely of boundary points. Such sets are uncountable and may have 0 or positive Lebesgue measure. The Cantor set is the only totally disconnected, perfect, compact metric space up to a homeomorphism (Willard 1970).

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.