Minkowski's question-mark function
In mathematics, the question mark function is a function denoted ?(x) whose definition is due to Hermann Minkowski. If is the continued fraction representation of an irrational number x, then
whereas if is a continued fraction for a rational number, then
It should be noted that if am is greater than one, then is also a continued fraction for the same number, but the two expressions give identical values for ?(x).
For rational numbers the function may also be defined recursively; if p/q and r/s are reduced fractions such that |ps - rq| = 1 (so that they are adjacent elements of a row of the Farey sequence) then
Properties of ?(x)
The question mark function is an increasing and continuous function. It sends rational numbers to dyadic rational numbers, meaning those whose base two representation terminates. It sends quadratic irrationalities to non-dyadic rational numbers. If ?(x) is irrational, then x is either algebraic of degree greater than two, or transcendental. The function is invertible, and the inverse function has also attracted the attention of various mathematicians, in particular John Conway.