Conway base 13 function


The Conway base 13 function is a function created by British mathematician John H. Conway as a counterexample to the converse of the intermediate value theorem. In other words, it is a function that satisfies a particular intermediate-value property—on any interval, the function f takes every value between f and f—but is not continuous.

Purpose

The Conway base 13 function was created as part of a "produce" activity: in this case, the challenge was to produce a simple-to-understand function which takes on every real value in every interval, that is, it is an everywhere surjective function. It is thus discontinuous at every point.

Sketch of definition

The Conway base-13 function is a function defined as follows. Write the argument value as a tridecimal using 13 symbols as "digits": ; there should be no trailing C recurring. There may be a leading sign, and somewhere there will be a tridecimal point to separate the integer part from the fractional part; these should both be ignored in the sequel. These "digits" can be thought of as having the values 0 to 12 respectively; Conway originally used the digits "+", "−" and "." instead of A, B, C, and underlined all of the base-13 "digits" to clearly distinguish them from the usual base-10 digits and symbols.
For example: