From Ternary Digits to Cantor-Set Points
The middle-third Cantor set is formed by repeatedly removing open middle thirds from the interval \([0,1]\). At every stage, each surviving interval has a left third and a right third; a point that survives can therefore be recorded by choosing left or right at each stage. In ternary notation, those choices correspond to digits \(0\) and \(2\). The main point to keep in view is that the correspondence is exact when stated as an existence claim: a real number belongs to the Cantor set if and only if it has a ternary expansion using only \(0\) and \(2\). Ternary expansions need not be unique, especially at interval endpoints.
For a finite word \(w=(w_1,\ldots,w_n)\), with each \(w_j\in\{0,2\}\), define its value by \(s(w)=\sum_{j=1}^{n}w_j3^{-j}\). The interval remaining at stage \(n\) with this sequence of left-right choices is \(I_w=[s(w),s(w)+3^{-n}]\). The length is \(3^{-n}\), since each choice retains one third of the previous interval. Write \(C_n\) for the union of all such intervals \(I_w\) with words of length \(n\), and \(C=\bigcap_{n=0}^{\infty}C_n\), where \(C_0=[0,1]\). Thus \(C\) is the middle-third Cantor set.
The value of the first \(n\) digits is \(s_n=\sum_{j=1}^{n}a_j3^{-j}\). The rest of the series is between \(0\) and \(\sum_{j=n+1}^{\infty}2\cdot3^{-j}=3^{-n}\). Consequently the ternary value lies in the stage-\(n\) interval \([s_n,s_n+3^{-n}]\), for every \(n\). This gives one direction of the correspondence immediately. The converse requires choosing the sequence of intervals containing a given point.
The Exact Correspondence
Proof. First suppose \(x=\sum_{j=1}^{\infty}a_j3^{-j}\) for digits \(a_j\in\{0,2\}\). For each \(n\), let \(w=(a_1,\ldots,a_n)\). The first \(n\) terms sum to \(s(w)\), and the remaining terms satisfy \(0\le\sum_{j=n+1}^{\infty}a_j3^{-j}\le\sum_{j=n+1}^{\infty}2\cdot3^{-j}=3^{-n}\). Therefore \(x\in I_w\subseteq C_n\) for every \(n\), and hence \(x\in\bigcap_{n=0}^{\infty}C_n=C\).
Conversely, suppose \(x\in C\). For each \(n\ge1\), \(x\in C_n\), so it lies in one of the intervals \(I_w\) of stage \(n\). These intervals are pairwise disjoint: two distinct words first differ at some position \(k\), and the corresponding left and right choices at that stage lie in separated thirds. Thus there is a unique word \(w^{(n)}\) whose interval contains \(x\). The intervals at stage \(n+1\) are contained in their stage-\(n\) parent intervals, so the first \(n\) digits of \(w^{(n+1)}\) must equal \(w^{(n)}\). These compatible words define an infinite sequence \((a_j)\) with \(a_j\in\{0,2\}\). For every \(n\), \(x\) lies in the interval with left endpoint \(s_n=\sum_{j=1}^{n}a_j3^{-j}\) and length \(3^{-n}\). Hence \(0\le x-s_n\le3^{-n}\). Since \(s_n\) converges to \(\sum_{j=1}^{\infty}a_j3^{-j}\) and \(3^{-n}\to0\), it follows that \(x=\sum_{j=1}^{\infty}a_j3^{-j}\). This proves both directions. \(\square\)
Worked Example: A Repeating Ternary Sequence
Find the number represented by \(0.202020\ldots{}_3\), and check that the corresponding point belongs to \(C\).
The digit \(2\) occurs in positions \(1,3,5,\ldots\), and all even-position digits are \(0\). Therefore the value is the geometric series
Every digit is \(0\) or \(2\), so the theorem shows that \(3/4\in C\). To check the calculation from the defining series, the first three digits give \(2/3+0+2/27=20/27\); the remaining tail is \(2/3^5+2/3^7+\cdots=2/243\,(1+1/9+1/9^2+\cdots)=1/108\). Thus the full value is \(20/27+1/108=80/108+1/108=81/108=3/4\). The first three digits also place the point in \([20/27,21/27]\), and \(3/4=81/108\) lies in that interval because \(20/27=80/108\) and \(21/27=84/108\).
Finite Stage Endpoints and Alternative Expansions
A finite ternary expansion is one that ends in zeros. An infinite expansion can have the same value: the tail of repeated \(2\)s exactly fills one unit in the next ternary place. For every integer \(k\ge1\),
This identity explains the basic endpoint ambiguity. If a finite expansion has digit \(2\) in position \(k\) and zeros afterward, reducing that digit to \(1\) and replacing the later zeros by \(2\)s leaves its value unchanged. Conversely, a digit \(1\) followed by zeros can be replaced by a \(0\) in that position followed by \(2\)s. When this produces an all-zero-and-two expansion, it can demonstrate that the endpoint belongs to \(C\), even though another expansion uses a digit \(1\).
Worked Example: The Endpoint \(1/3\)
Show that \(1/3\) has two ternary expansions and verify which one displays its membership in \(C\).
The finite expansion is \(1/3=0.1_3\). For the other expansion, sum the digits \(2\) beginning in position two:
The value is an endpoint of the first-stage interval \([0,1/3]\), which is retained when the open middle third \((1/3,2/3)\) is removed. The expansion \(0.02222\ldots{}_3\) also proves membership directly by the theorem, since all its digits are \(0\) or \(2\). As a check, the first \(n\) digits of that expansion give the left endpoint \(\sum_{j=2}^{n}2/3^j\); the gap between this partial sum and \(1/3\) is \(3^{-n}\), exactly the length of the corresponding stage-\(n\) interval.
Worked Example: The Endpoint \(2/9\)
Verify two ternary expansions of \(2/9\) and locate it in the stage-two Cantor set.
The finite expansion is \(0.02000\ldots{}_3=2/9\). Another expansion is \(0.01222\ldots{}_3\): its second digit contributes \(1/9\), and its tail from the third position onward contributes
Thus \(0.01222\ldots{}_3=1/9+1/9=2/9\), agreeing with the finite expansion. The first two digits \(02\) determine the stage-two interval \([2/9,2/9+1/9]=[2/9,1/3]\), so \(2/9\) is its left endpoint. The finite expansion uses only \(0\) and \(2\), establishing \(2/9\in C\). As a numerical check, \(1/3^2=1/9\) and the repeated-\(2\) tail from position three is also \(1/9\); their sum is \(2/9\).
A Common Mistake
A tempting but incorrect claim is: “A point of \(C\) has no ternary expansion containing the digit \(1\).” The calculation \(1/3=0.1_3\) disproves this claim, while \(1/3=0.02222\ldots{}_3\) confirms that the same point has an expansion using only \(0\) and \(2\). The correct characterization is existential: at least one such expansion exists. The endpoint examples show why checking only a preferred finite expansion can give the wrong impression about membership.
There is a separate arithmetic pitfall in reading the digits as if they were ordinary decimal digits. For example, \(0.202020\ldots{}_3\) is not the decimal number \(0.202020\ldots\). Its place values are \(1/3,1/9,1/27,\ldots\), not \(1/10,1/100,1/1000,\ldots\). Computing the geometric series with powers of \(3\), as in the worked example, gives its value \(3/4\).
Check Your Understanding
Use the digit-value formula and the stage intervals to justify your answers.
- Compute the value of \(0.2000\ldots{}_3\). Which stage-one interval contains it?
- Show that \(0.0222\ldots{}_3\) and \(0.1000\ldots{}_3\) represent the same number.
- Explain why a sequence of digits chosen only from \(0\) and \(2\) always represents a point of \(C\), even when its expansion is not eventually constant.
- Find the value of \(0.020202\ldots{}_3\) by summing a geometric series, and state why the point belongs to \(C\).
- In the characterization theorem, why do the stage-\(n\) intervals containing a fixed \(x\in C\) determine compatible prefixes of one infinite digit sequence?