The Cantor function
is defined as the function on
such that for values of
on the Cantor set, i.e.,
 |
(1)
|
then
 |
(2)
|
which is then extended to other values by noting that
is monotone and has the same values on each removed endpoint (Chalice 1991).
The Cantor function is a particular case of a devil's staircase (Devaney 1987, p. 110), and can be extended to a function
for
, with
corresponding to the usual Cantor function (Gorin and Kukushkin 2004).
Chalice (1991) showed that any real-valued function
on
which is monotone increasing and satisfies
1.
,
2.
,
3. 
is the Cantor function (Chalice 1991; Wagon 2000, p. 132).
Gorin and Kukushkin (2004) give the remarkable identity
![I_q(n)=int_0^1[F_q(t)]^ndt
=1/(n+1)-(q-2)sum_(k=1)^(|_n/2_|)(n; 2k)(2^(2k-1)-1)/(q·2^(2k-1)-1)(B_(2k))/(n-2k+1)](http://mathworld.wolfram.com/images/equations/CantorFunction/NumberedEquation3.gif) |
(3)
|
for integer
. For
and
, 2, ..., this gives the first few values as 1/2, 3/10, 1/5, 33/230, 5/46, 75/874, ... (Sloane's A095844 and A095845).
M. Trott (pers. comm., June 8, 2004) has noted that
![int_0^1[F(t)]^(F(t))dt approx 0.750387...](http://mathworld.wolfram.com/images/equations/CantorFunction/NumberedEquation4.gif) |
(4)
|
(Sloane's A113223), which seems to be just slightly greater than 3/4.