Cantor function: Difference between revisions

Content deleted Content added
Definition: added digits 0,1,2
Line 10:
To define the Cantor function <math>c:[0,1]\to[0,1]</math>, let <math>x</math> be any number in <math>[0,1]</math> and obtain <math>c(x)</math> by the following steps:
 
#Express <math>x</math> in base 3, using digits 0, 1, 2.
#If the base-3 representation of <math>x</math> contains a 1, replace every digit strictly after the first 1 with 0.
#Replace any remaining 2s with 1s.