I would like some clarification about the Cantor Set:
- What are the elements in the Cantor Set?
- How do I write the Cantor Set in mathematical terms (i.e in a summation)? I have seen online a formula but I do not understand how they got it so would be grateful if you could explain why it is this formula too.
EDIT: The formula I have seen online is: $$\sum_{i=0}^\infty (a(i)/3^i) $$ where a(i) is either 0 or 2.
The Cantor Set $\mathcal C$ can be defined by the following recursive sequence of sets:
$$\mathcal C_0 = [0, 1]$$ $$\mathcal C_{n+1}= \frac{\mathcal C_n}3\cup\left(\frac23+\frac{C_n}3\right)$$ $$\mathcal C := \bigcap^\infty_{n=0}\mathcal C_n$$
This definition should reflect the intuitive notion of what the Cantor Set is and how it can be constructed.
To explain this further, I will explain the math in laymen's terms.
Start with the closed unit interval, $[0, 1]$.
The next iteration is the previous one divided by three and the previous one divided by three with its origin shifted to be at $\frac23$. This yields $[0, \frac13]\cup[\frac23, 1]$, then $[0, \frac19]\cup[\frac29, \frac13]\cup[\frac23, \frac79]\cup[\frac89, 1]$, etc.
The set itself is the set of points that are present in every iteration of this process.
In case you were wondering how the definition you gave ties into mine (which I find much more intuitive), Here is an explanation:
Observe that as $\mathcal C_n$ is iterated, the edges of each interval ($0, \frac13, \frac23, \frac19, $ etc) remain in the set.
All of these numbers can be expressed by the sum $$\sum^\infty_{n=1}\frac{a_n}{3^n}$$ where the sequence $a$ is all $0$s and $2$s.
For example, $\frac13$ is the sum when $a_n = \langle 0, 2, 2, 2, 2, \cdots\rangle$, or $\frac29+\frac2{27}+\frac2{81}+\cdots$
I'll leave it to you to find the reason for this connection, but a hint is that it has to do with the $\frac23$ being added.