Ignore the zero-area boundary sets where a reciprocal or its digit is undefined, and put . On this digit branch the natural extension of the continued-fraction Gauss map has inverse
The images are the disjoint horizontal strips , covering the square almost everywhere. Thus the branch calculation proves global invariance without an extra sum over overlapping branches.
Its Jacobian determinant has magnitude . Since
the transformed density satisfies
The change of variables formula therefore proves invariance. Normalization follows from
Projecting onto the first coordinate commutes with the Gauss continued-fraction map, so its invariant marginal is the Gauss measure:
One may also check it directly. The inverse branches give
where the last sum telescopes. Values assigned at the exceptional boundary points do not affect the absolutely continuous invariant measure.