# How did Gauss discover the invariant density for the Gauss map?

The Gauss map is defined on $(0,1)$ by the formula $$f(x)=\frac1x-\Big\lfloor\frac1x\Big\rfloor$$ Then the density $$\rho(x)=\frac{1}{\log2(1+x)}$$ is $f$-invariant.

It appeared in Gauss' diary. Gauss didn't indicate the way he had found the density. Checking invariance is straightforward.

Is there a simple (short) way to come up with this density function?

• A. Ya. Khinchin says in the little book "Continued Fractions" that Gauss did not include a proof in the letter to Laplace that gives the density, never published the proof, but these appeared with Kuz'min in 1928 and Levy in 1929. Khinchin indicates that his proof follows Kuz'min. But it is several pages. Available as a Dover paperback. And, of course, there could be a modern short proof. – Will Jagy May 3 '10 at 1:40
• Will, I think Khinchin is talking about the proof of ergodicity of $f$. This is important as it can be used to proof a statement on distribution of continued fraction "digits". This statement is frequently referred to as "Kuz'min's theorem". I may be wrong – Zarathustra May 4 '10 at 1:12
• Yes, Khinchin is preparing the whole topic in very few pages, the Gauss measure blends in with lots of related stuff. Section 15, "Gauss's problem and Kuz'min's theorem" starts on page 71, and I think the first time he mentions the exact form of your $\rho(x)$ is formula (80) on page 82. I see you liked Peter Luthy's heuristic. Good. – Will Jagy May 4 '10 at 1:56

Here is a heuristic.

Observe that $f$ is decreasing on any interval of the form $I_n:=(1/(n+1),1/n)$. If $x\in I_n$ and $f(x)=a$, then $x=\frac{1}{a+n}$, and so $f^{-1}(a,1)$ is the union of the intervals $(1/(n+1),1/(n+a))$. Supposing there were an $f$-invariant measure $\mu=gdx$, you can see that

$\displaystyle{\sum_{n=1}^\infty \int_{1/n+1}^{1/n+a}g(x)dx=\int_a^1g(x)dx}$.

Supposing that $g$ is continuous, take the derivative of both sides:

(**) $\displaystyle{\sum_{n=1}^\infty g\left(1/(n+a)\right)/(n+a)^2=g(a)}$.

Approximating the sum by an integral, we get

$\displaystyle{g(a)\approx\int_1^\infty g\left(\frac{1}{x+a}\right)\frac{1}{(x+a)^2}dx}$.

Supposing that $g$ is never too big or too small, this gives

$g(a)\approx \frac{C}{1+a}$.

One can then plug this kind of function into (**) to see that such a function works for any C. Then just pick C to normalize.

Probably someone from the era of Gauss (especially with his acuity at mathematics) did not need to do anything past (**) since people back then seem like magicians when it comes to expressions with infinite sums.

• You're very welcome! – Peter Luthy May 4 '10 at 5:47

It is not the density. It is distribution function. Density function $1/(x+1)$ is not so complicated to find it. Rational numbers lead to this function as well. So some experiments can give this function.

Another heuristics you can find in the article Gyldén, H. Quelques remarques relativement à la représentation des nombres irrationnels par des fractions continues C. R. Ac. Sci. Paris., 1888, 107, 1584–1587 They are very rough but one of the Gyldén' answers is correct.

• Alexey, could you elaborate on this: if someone didn't already know an invariant measure for the Gauss transformation, what kind of numerical experiments (or other ideas) would naturally lead one to anticipate that something like the Gauss measure is a good candidate for an invariant measure? That the Gauss measure works can be verified mechanically once it is found, but I am unaware of a natural way to find it in the first place, as also spoke Zarathustra. – KConrad May 3 '10 at 3:32
• You can consider continued fraction expansion for rational numbers $a/b$, $1\le a\le b\le R$, $R\to\infty$. You will find that there is probability $p(1)$ that partial quotient is equal to 1 (or 2, 3,...). More generally there ia probability that the tail of continued fraction is less or equal to the fixed number $x$. Using $p(1)$, $p(2)$... you'll find values of distribution function at $x=1/2$, $2/3$, $3/4$,... Next spep is to find appropriate density function. – Alexey Ustinov May 3 '10 at 7:10
• – Will Jagy May 3 '10 at 17:38
• Alexey, I understand what you are saying. It is hard to believe that it was discovered like that (though I know that people were good at doing math experiments by hand back then). Does anyone know if Gauss was collecting this statistical data for rational numbers? – Zarathustra May 4 '10 at 1:19
• The same statistics can came from qudratic irrationalities. – Alexey Ustinov May 5 '10 at 8:38

I once saw a talk by professor Pierre Arnoux of Institut de Mathématique de Luminy where he talked precisely about that. The baseline was that nobody knows. Apparently gauss wrote in a letter that "an easy calculation shows that....". For the rest of the talk he presented some approaches that Gauss might have taken. But in the end we don't know.

• This sounds more like a comment to me, unless you elaborate on what those possible approaches presented were. – Wojowu Apr 22 at 13:26
• Well, the question was not "How can one discover the invariant density of the Gauss map", but "How did Gauss discover the invariant density of the Gauss map". I'm saying that the best answer to that question is: We don't know. The reason? Someone has read through all the letters to find the answer and found no answer. – Martin Andersson Apr 24 at 2:55