The Cantor function
is a continuous function on
that is not an absolutely
continuous function and may be defined as follows. First, express
in ternary. If the resulting ternary digit string contains
the digit 1, replace every ternary digit following the first 1 by a 0. Next, replace all 2's
with 1's. Finally, interpret the result as a binary number
which then gives
.
The Cantor function is a particular case of a devil's staircase (Devaney 1987, p. 110), and can be extended to a function for real
. This is the unique continuous
function on
with
,
, and
|
(1)
|
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
|
(2)
| |||
|
(3)
|
for nonnegative integers , where
is a Bernoulli number
and
is the floor function. For
and
, 2, ..., this gives the first few values as 1/2, 3/10, 1/5,
33/230, 5/46, 75/874, ... (OEIS A095844 and
A095845).
Another integral associated with the Cantor function, considered by M. Trott (pers. comm., June 8, 2004), is
|
(4)
|
(OEIS A113223), with the integrand defined to be 1 at .
The value is greater than 3/4.