Devil's Staircase

The Cantor function is the canonical "devil's staircase": it is continuous, non-decreasing, constant on each removed interval of the Cantor set, yet rises from 0 to 1. Despite being constant almost everywhere (Lebesgue), it increases on a set of measure zero.

6
3
Constructed recursively: remove middle third at each step. c(1/3)=1/2, c(2/3)=1/2... wait, c(1/3)=1/2?! Yes — constant on [1/3,2/3].
Hover over the graph to probe values