\documentclass[12pt,reqno]{article}

\usepackage[usenames]{color}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{amscd}

\usepackage[colorlinks=true,
linkcolor=webgreen,
filecolor=webbrown,
citecolor=webgreen]{hyperref}

\definecolor{webgreen}{rgb}{0,.5,0}
\definecolor{webbrown}{rgb}{.6,0,0}

\usepackage{color}
\usepackage{fullpage}
\usepackage{float}

\usepackage{psfig}
\usepackage{graphics,amsmath,amssymb}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{latexsym}
\usepackage{epsf}

\setlength{\textwidth}{6.5in}
\setlength{\oddsidemargin}{.1in}
\setlength{\evensidemargin}{.1in}
\setlength{\topmargin}{-.5in}
\setlength{\textheight}{8.9in}

\newcommand{\seqnum}[1]{\href{http://oeis.org/#1}{\underline{#1}}}

\begin{document}

\begin{center}
\epsfxsize=4in
\leavevmode\epsffile{logo129.eps}
\end{center}

\theoremstyle{plain}
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}

\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{conjecture}[theorem]{Conjecture}

\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}

\begin{center}
\vskip 1cm{\LARGE\bf On Error Sum Functions Formed by \\
\vskip .1in Convergents of Real 
Numbers
}
\vskip 1cm
\large
Carsten Elsner and Martin Stein\\
Fachhochschule f\"ur die Wirtschaft Hannover\\
Freundallee 15\\
30173 Hannover\\
Germany \\
\href{mailto:Carsten.Elsner@fhdw.de}{\tt Carsten.Elsner@fhdw.de} \\
\end{center}

\vskip .2 in


\newcommand{\C}{\mathbb{C}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\E}{\mathcal{E}}







\begin{abstract}
Let $p_m/q_m$ denote the $m$-th convergent $(m\geq0)$ from the continued fraction expansion of some real number $\alpha$. We continue our
work on error sum functions defined by
$\mathcal{E}(\alpha) := \sum_{m\geq0} |q_m \alpha - p_m|$ and $\mathcal{E}^*(\alpha) := \sum_{m\geq0} (q_m \alpha - p_m)$
by proving a new density result for the values of $\E$ and $\E^*$. Moreover, we study the function $\mathcal{E}$ with respect to
continuity and compute the integral $\int_0^1 \mathcal{E}(\alpha) \,d\alpha$. We also consider generalized error sum functions for the approximation with algebraic numbers of bounded degrees in the sense of Mahler.
\end{abstract}


\section{Introduction and statement of the main results}\label{sec1}
Recently the first author \cite{Els1} introduced two error sums: Let \(\alpha = [ a_0;a_1,a_2,\dots ] \) be the continued fraction expansion
of a real number \(\alpha \), which may be finite in the case of a rational number \(\alpha \). Let
\[\frac{p_m}{q_m} \,=\, [ a_0;a_1,\dots ,a_m ] \qquad (m\geq 0) \]
denote the convergents of \(\alpha \). The error sum functions \(\E(\alpha) \) and \(\E^*(\alpha) \) are defined by
\begin{eqnarray*}
\E(\alpha) &\,=\,& \sum_{m\geq 0} |\alpha q_m - p_m| \,=\, \sum_{m\geq 0} {(-1)}^m (\alpha q_m - p_m) \,, \\
\E^*(\alpha) &\,=\,& \sum_{m\geq 0} (\alpha q_m - p_m) \,.
\end{eqnarray*}
Both functions do not depend on the integer part \(a_0 \) of \(\alpha \). So we may restrict their domains on the interval \([0,1) \). 

The first author \cite{Els1} proved that 
\[0 \,\leq \, \E(\alpha) \,\leq \, \rho \,=\, \frac{1+\sqrt{5}}{2} \qquad \mbox{and} \qquad 0 \,\leq \, \E^*(\alpha) \,\leq \,1
\qquad (\alpha \in {\R}) \,.\]

The series \(\sum_{m\geq0} |q_m \alpha - p_m| \in [0,\rho] \) measures the approximation properties of \(\alpha \) on average. The smaller
this series is, the better rational approximations \(\alpha \) has. Nevertheless, \(\alpha \) can be a Liouville number and \(\sum_{m\geq0} 
|q_m \alpha - p_m| \) takes a value close to \(\rho\). So, it may be interesting to question on the average value of $\E$ and $\E^*$, respectively. We compute the average value of $\E$, see Theorem~\ref{Thm4}.
The error sum functions $\E$ and $\E^*$ have various interesting properties. In \cite{Els1}, applications are discussed for certain transcendental
numbers and for quadratic irrational numbers. For instance, we have
\begin{eqnarray*}
\E(\exp(1)) &\,=\,& \sum_{m\geq0} |q_m e - p_m| \,=\, 2e\int_0^1 \exp (-t^2) \,dt - e \,=\, 1.3418751\ldots \,, \\
\E^*(\exp(1)) &\,=\,& \sum_{m\geq0} (q_m e - p_m) \,=\, 2\int_0^1 \exp (t^2)\,dt -2e + 3\,=\, 0.4887398 \ldots \,, \\
\E(\sqrt{7}) &\,=\,& \sum_{m\geq0} |q_m\sqrt{7} -p_m| \,=\, \frac{7 + 5\sqrt{7}}{14} \,=\, 1.444911182 \ldots \,, \\
\E^*(\sqrt{7}) &\,=\,&\sum_{m\geq0} (q_m\sqrt{7} -p_m) \,=\, \frac{21 - 5\sqrt{7}}{14} \,=\, 0.555088817 \ldots \,.
\end{eqnarray*} 
It is clear that for any rational number \(\alpha \) the series for $\E(\alpha)$ and $\E^*(\alpha)$ become finite sums and therefore belong to
${\Q}$. In the case of quadratic irrational numbers \(\alpha \) we have $\E(\alpha) \in {\Q}(\alpha)$ and
$\E^*(\alpha) \in {\Q}(\alpha)$ (\cite[Theorem~3]{Els1}). But for quadratic irrationals $\E(\alpha) \in \Q(\alpha)\setminus\Q$ does not hold in general. For example, $\E((3-\sqrt{5})/2)=1$ (see \cite[Lemma~8]{Els2}). On the other hand $\E(\alpha) \in {\Q}(\alpha)$ is not true for all real numbers $\alpha$. For \(\alpha = e = \exp(1) \) we have $\E(e) \not\in {\Q}(e)$, since \(e\) and \(\int_0^1 \exp(-t^2) \,dt \) are algebraically independent over \({\Q} \). This follows from a remark on page 193 in \cite{Shid}. Similarly, one can show that $\E^*(e) \not\in {\Q}(e)$.    


The authors \cite{Els2} studied the value distribution of the error sum functions in more detail. They constructed two algorithms which
prove that the set of values of \(\E\) is dense in the interval \(I_{\E}=[0,\rho] \), and that the set of values of \(\E^* \) is dense in the interval \(I_{\E*}=[0,1] \) (see \cite[Theorems\,1,\,2]{Els2}). But, given any uniformly modulo one distributed sequence 
\({(\alpha_{\nu})}_{\nu \geq 1} \) of real numbers, the sequences \({(\E(\alpha_{\nu}))}_{\nu \geq 1} \) and \({(\E^*(\alpha_{\nu}))}_{\nu \geq 
1} \) are not uniformly distributed in \(I_{\E} \) and \(I_{\E^*} \), respectively (see \cite[Theorems\,3,\,4]{Els2}). In this paper we show that any dense subset of \((0,1) \) is mapped by \(\E(\alpha) \) and \(\E^*(\alpha) \) into a set which is dense in \(I_{\E} \) and \(I_{\E^*} \), respectively. Then, we continue to study the analytic properties of the error sum functions. The function $\E^*$ has already been investigated by Ridley and Petruska \cite{RP}. Among other things they showed that $\E^*(\alpha)$ is continuous at every irrational point $\alpha$, and discontinuous when $\alpha$ is rational. Moreover, they computed the integral $\int_0^1 \E^*(\alpha) \,d\alpha$ by applying the functional equation
\[
\E^*(\alpha) + \E^*(1-\alpha) = \max\{\alpha,1-\alpha\} \quad \mbox{except at} \quad \alpha=0 \quad \mbox{and} \quad \alpha=\frac{1}{2}\,.
\]
Inspired by the work of Ridley and Petruska,
we prove similar results for the error sum function $\E$. We compute the integral $\int_0^1 \E(\alpha) \,d\alpha$ by using a multiple sum, which expresses the integral in terms of denominators of convergents. Unfortunately, the functional equation 
\[
\E(\alpha) - \E(1-\alpha) = \begin{cases} \alpha - 1, &\mbox{if} \quad  0<\alpha<1/2; \\
                                          \alpha,  &\mbox{if} \quad  1/2<\alpha<1; \\
\end{cases}
\]
cannot be used to evaluate the integral $\int_0^1 \E(\alpha) \,d\alpha$.

The main results of this paper are given by the following theorems.

\begin{theorem}
Let \({(\alpha_n)}_{n\geq 1} \) be a sequence of real numbers forming a dense set $\{\alpha_n\,:\, n\in\N\}$ in \((0,1) \). Then the set \(\{\E(\alpha_n) \,:\, n\in \N \} \) is dense in \((0,\rho) \), and the set \(\{\E^*(\alpha_n)\,:\, n\in\N\} \) is dense in \((0,1) \).
\label{Thm1}
\end{theorem}

\begin{theorem}
The function \(\E(\alpha) \) is discontinuous at every rational point \(\alpha\), and it is continuous at every irrational point \(\alpha\).
\label{Thm2}
\end{theorem}

\begin{example} Let \(n,k \) be integers with \(n,k \geq 3 \). For \(x=1/n \) we have
\begin{eqnarray*}
\E \Big( \,\frac{1}{n} + \frac{1}{n^k}\,\Big) &\,=\,& \frac{2}{n} + \frac{3}{n^k} \quad \to \quad \frac{2}{n} \quad (k \to \infty) \,,\\
\E \Big( \,\frac{1}{n} - \frac{1}{n^k}\,\Big) &\,=\,& \frac{1}{n} - \frac{1}{n^k} + \frac{2}{n^{k-1}} \quad \to \quad \frac{1}{n} \quad (k \to \infty) \,, \\
\E^* \Big( \,\frac{1}{n} + \frac{1}{n^k}\,\Big) &\,=\,& \frac{2}{n^{k-1}} - \frac{1}{n^k} \quad \to \quad 0 \quad (k \to \infty) \,,\\
\E^* \Big( \,\frac{1}{n} - \frac{1}{n^k}\,\Big) &\,=\,& \frac{1}{n} - \frac{3}{n^k}  \quad \to \quad \frac{1}{n} \quad (k \to \infty) \,.
\end{eqnarray*}
\end{example}
These expressions are obtained by using the identities
\begin{eqnarray*}
\frac{1}{n} + \frac{1}{n^k} &\,=\,& [ \,0;n-1,1,n^{k-2}-1,n \,] \,,\\
\frac{1}{n} - \frac{1}{n^k} &\,=\,& [ \,0;n,n^{k-2}-1,1,n-1 \,] \,.
\end{eqnarray*}
\hfill{$\Box$}

Let \(m\geq 1 \), and let \(a_1,\dots ,a_m \) be positive integers. Set
\[\frac{p_m}{q_m} \,=\, [ \,0;a_1,\dots ,a_m\,] \,,\] 
where \(p_m \) and \(q_m \) with \(q_m >0 \) are coprime integers. 

\begin{theorem}
We have
\[\int_0^1 \E(\alpha) \,d\alpha \,=\, \frac{1}{2} + \frac{1}{2} \sum_{m=1}^{\infty} \,\sum_{a_1=1}^{\infty} \dots 
\sum_{a_m=1}^{\infty} \frac{1}{q_m{(q_m + q_{m-1})}^2} \,,\]
and
\[\int_0^1 \E^*(\alpha) \,d\alpha \,=\, \frac{1}{2} + \frac{1}{2} \sum_{m=1}^{\infty} \,\sum_{a_1=1}^{\infty} \dots 
\sum_{a_m=1}^{\infty} \frac{{(-1)}^m}{q_m{(q_m + q_{m-1})}^2} \,.\]
\label{Thm3} 
\end{theorem}

With the first identity from the preceding theorem, we compute the mean value of the function $\E$.

\begin{theorem}
We have
\[
\int_0^1 \E(\alpha) \,d\alpha = -\frac{5}{8} +  \frac{3\zeta(2) \log{2}}{2\zeta(3)} = 0.79778798\ldots  \,,
\]
where $\zeta(s)$ denotes the Riemann zeta function.
\label{Thm4}
\end{theorem}

\begin{remark}
Ridley and Petruska \cite{RP} proved that
\[
\int_0^1 \E^*(\alpha) \,d\alpha = \frac{3}{8} \,.
\]
\label{Rem1}
\end{remark}

We point out that by Theorem\,\ref{Thm4} and Remark\,\ref{Rem1} the mean values of $\E$ and $\E^*$ are less than half of the maximum value of \(\E \) and \(\E^* \), respectively.

In Section~\ref{sec5} we generalize the error sum function $\E$ to the approximation with algebraic numbers of bounded
degree. Here, the Mahler function $w_n(H,\alpha)$ will be involved. 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% section 2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Proof of Theorem \ref{Thm1}}\label{sec2}
We will only prove the statement concerning the values of the function $\E$, since there are no additional arguments for the function $\E^*$.

It is shown in the proof of Theorem~1 in \cite{Els2} that the set $\{\E(\alpha)\,:\, \alpha \in \Q\cap (0,1)\}$ is dense in $(0,\rho)$. Hence, for any real number $\eta \in (0,\rho)$ and for any $\delta>0$ there is a rational number $r\in(0,1)$ satisfying
\begin{equation}
\big| \eta - {\E}(r) \big| \,<\, \frac{\delta}{3} \,. 
\label{10}
\end{equation}
By
\[
r \,=\, [ 0;a_1,a_2,\dots ,a_t ] \,=\, \frac{p_t}{q_t} 
\]
we denote the continued fraction expansion of $r$. Without loss of generality we may assume that $t$ satisfies
\begin{equation}
\frac{1+\sqrt{2}}{{(\sqrt{2})}^{t-1}} \,<\, \frac{\delta}{3}\,.
\label{30}
\end{equation}
This can be seen by the following argument: For any number $r'=[ 0;a_1,\dots ,a_{t'} ]$ satisfying $|\eta - {\E}(r')| < \delta/3$ and $t'<t$ we construct a number $r \,=\, [ 0;a_1,a_2,\dots ,a_t ]$ with $a_{t'+1}=\cdots=a_t=b$, such that $t$ satisfies (\ref{30}) and $b$ is sufficiently large (see \cite[Lemma~1]{Els2}). Namely, for $r_k$ defined by $r_k := [ 0;a_1,\dots ,a_{t'},\underbrace{b,\dots ,b}_k ]$ we have
\begin{eqnarray*}
\big| {\E}(r) - {\E}(r') \big| &\,=\,& \big| {\E}(r_{t-t'}) - {\E}(r_0) \big| 
\,=\, \big| \,\sum_{k=0}^{t-t'-1} {\E}(r_{k+1}) - {\E}(r_k) \,\big| \\
&\,\leq \,& \sum_{k=0}^{t-t'-1} \big| \,{\E}(r_{k+1}) - {\E}(r_k) \,\big| 
\,<\, \sum_{k=0}^{t-t'-1} \frac{1}{b} \,=\, \frac{t-t'}{b} \\
&\,<\,& \frac{t}{b} \,\to \, 0 \qquad (b\to \infty) \,.
\end{eqnarray*}  

Since the set $\{\alpha_n\,:\, n\in\N\}$ is dense in $(0,1)$ by the assumption in the theorem, there is a positive integer $m$ satisfying
\[
\alpha_m \,=\, [ 0;a_1,a_2,\dots ,a_t,a_{t+1},\dots  ] 
\]
and
\begin{equation}
\big| r - \alpha_m \big| \,<\, \frac{\delta}{3(t+1)q_t} \,.
\label{50}
\end{equation}
Let \(p_{\nu}/q_{\nu} \) be the convergents of \(\alpha_m \). Then, by applying the inequalities (\ref{10}), (\ref{50}) and (\ref{30}) we have
\begin{align*}
\big| \eta - {\E}(\alpha_m) \big| &\,=\, \big| \eta - {\E}(r) + {\E}(r) - {\E}(\alpha_m) \big| \leq \,  \big| \eta - {\E}(r) \big| + \big| {\E}(r) - {\E}(\alpha_m) \big| \\
&\,<\, \frac{\delta}{3} + \big| \sum_{\nu =0}^t |q_{\nu}r - p_{\nu}|  - \sum_{\nu \geq0} |q_{\nu}\alpha_m - p_{\nu}| \,\big|\\
&\,\leq \, \frac{\delta}{3} + \sum_{\nu =0}^t |r-\alpha_m|q_t + \sum_{\nu \geq t+1} |q_{\nu}\alpha_m - p_{\nu}|  \\
&\,\leq \, \frac{\delta}{3} + \sum_{\nu =0}^t \frac{\delta}{3(t+1)} + \sum_{\nu \geq t+1} \frac{1}{q_{\nu}} \\
&\,\leq \, \frac{2\delta}{3} + \sum_{\nu \geq t} \frac{1}{{(\sqrt{2})}^{\nu}} \\
&\,=\, \frac{2\delta}{3} + \frac{1+\sqrt{2}}{{(\sqrt{2})}^{t-1}} \\
&\,<\, \delta \,,
\end{align*} 
which completes the proof of Theorem~\ref{Thm1}. \hfill $\Box$


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% section 3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Proof of Theorem \ref{Thm2}}\label{sec3}
Since the function $\E$ is periodic of period one,
it suffices to prove Theorem~\ref{Thm2} for $\alpha \in [0,1)$. We will prove the statement on continuity first. Let $\eta \in [0,1)$ be a real irrational number, say
\[
\eta = [ 0;a_1,a_2,\ldots]\,,
\]
and let $(\xi_n)_{n\geq1}$ be a sequence of real numbers converging to $\eta$. By $I_m=I_m(a_1,\ldots,a_m)$ we denote the interval defined
uniquely by
\begin{equation}
[ 0;b_1,b_2,\ldots ] \in I_m \quad \iff \quad (b_1=a_1\,\wedge\,\cdots\,\wedge\, b_m=a_m)\,.
\label{eq:Im}
\end{equation}
The boundary points of $I_m$ are rational numbers, and therefore the irrational number $\eta$ lies in the interior of $I_m$ for any $m\geq1$. With $\lim_{n\to \infty} \xi_n = \eta$ we conclude on
\[
\xi_n \in I_m \quad (n\geq n_0) 
\]
for some positive integer $n_0 = n_0(m)$. Hence, by (\ref{eq:Im}), we have
\begin{equation}
\xi_n = [ 0;a_1,\ldots,a_m,\ldots].
\label{eq:3.2}
\end{equation} 
Let $p_{\nu}/q_{\nu}$ for $\nu\geq0$ be the convergents of $\eta$ and let $p^{(n)}_{\nu}/q^{(n)}_{\nu}$ be the convergents of $\xi_n$. Then, from (\ref{eq:3.2}), it follows that
\[
\frac{p_{\nu}}{q_{\nu}} = \frac{p^{(n)}_{\nu}}{q^{(n)}_{\nu}} \quad (0\leq\nu\leq m)\,.
\]
For a fixed positive integer $m$ and any $n\geq n_0$ we estimate
\begin{align*}
|\E(\eta) - \E(\xi_n)| &= \Big|\sum_{\nu\geq0} |q_{\nu}\eta - p_{\nu}| - \sum_{\nu\geq0} |q^{(n)}_{\nu}\xi_n - p^{(n)}_{\nu}|\Big| \\
&\leq \Big|\sum_{\nu=0}^{m} (-1)^{\nu}q_{\nu}(\eta - \xi_n) \Big| + \sum_{\nu \geq m+1} |q_{\nu} \eta - p_{\nu}| + \sum_{\nu\geq m+1} |q^{(n)}_{\nu}\xi_n - p^{(n)}_{\nu}| \\
&\leq \Big|\sum_{\nu=0}^{m} (-1)^{\nu}q_{\nu}(\eta - \xi_n) \Big| + \sum_{\nu \geq m+1} \frac{1}{q_{\nu}} + \sum_{\nu \geq m+1} \frac{1}{q^{(n)}_{\nu}} \\
&\leq \Big|\sum_{\nu=0}^{m} (-1)^{\nu}q_{\nu}(\eta - \xi_n) \Big| + \sum_{\nu \geq m+1} \frac{1}{2^{(\nu-1)/2}} + \sum_{\nu \geq m+1} \frac{1}{2^{(\nu-1)/2}} \\
&= \Big|\sum_{\nu=0}^{m} (-1)^{\nu}q_{\nu}(\eta - \xi_n) \Big| + \frac{2\sqrt{2}}{\sqrt{2} - 1} \cdot \frac{1}{{(\sqrt{2})}^m}\,.
\end{align*}
Since $m$ can be chosen arbitrary large and $\xi_n$ tends to $\eta$ for increasing $n$, we conclude on
\[
\lim_{n\to\infty} \E(\xi_n) = \E(\eta)\,.
\] 
This proves that the function $\E(\alpha)$ is continuous at every irrational point $\alpha$.

To prove the statement on discontinuity we shall at first discuss the case when $\eta$ is a rational number in $(0,1)$. Let 
\[
\eta = [ 0;a_1,a_2,\ldots,a_m]\,
\]
for some integers $m\geq1$ and $a_m>1$. Moreover, let $(\xi^{(1)}_n)_{n\geq2}$ and $(\xi^{(2)}_n)_{n\geq2}$ be two sequences of rationals defined by
\[
\xi^{(1)}_n = [ 0; a_1,\ldots,a_m,n] \quad \mbox{and} \quad \xi^{(2)}_n = [ 0; a_1,\ldots,a_m-1,1,n] \quad (n\geq2)\,.
\]
Obviously we have
\begin{equation}
\lim_{n\to\infty} \xi^{(1)}_n = \eta = \lim_{n\to\infty} \xi^{(2)}_n \,.
\label{eq:3.3}
\end{equation} 
Let $p_{\nu}^{(1)}/q_{\nu}^{(1)}$ for $\nu=0,\ldots,m+1$ be the convergents of $\xi_n^{(1)}$. By $p_{\nu}^{(2)}/q_{\nu}^{(2)}$ for $\nu=0,\ldots,m+2$ we denote the convergents of $\xi_n^{(2)}$. Then we have
\[
\frac{p_{\nu}^{(1)}}{q_{\nu}^{(1)}} = \frac{p_{\nu}^{(2)}}{q_{\nu}^{(2)}} \quad (0\leq \nu \leq m-1)\,.
\]
Therefore we may set $p_{\nu}:=p_{\nu}^{(1)}=p_{\nu}^{(2)}$ and $q_{\nu}:=q_{\nu}^{(1)}=q_{\nu}^{(2)}$ for $\nu=0,\ldots,m-1$. We compute
\begin{align*}
\E(\xi_n^{(2)}) - \E(\xi_n^{(1)}) -& \sum_{\nu=0}^{m-1} (-1)^{\nu} (\xi_n^{(2)} - \xi_n^{(1)}) q_{\nu} \\
=& \,(-1)^m ((a_m-1)q_{m-1} + q_{m-2}) \xi_n^{(2)} - (-1)^m ((a_m-1)p_{m-1} + p_{m-2}) \\
&+ (-1)^{m+1} (a_mq_{m-1} + q_{m-2}) \xi_n^{(2)} - (-1)^{m+1} (a_mp_{m-1} + p_{m-2}) \\
&- (-1)^m (a_mq_{m-1} + q_{m-2}) \xi_n^{(1)} + (-1)^m (a_mp_{m-1} + p_{m-2}) \\
=& \, (-1)^m (\xi_n^{(2)} - \xi_n^{(1)})(a_mq_{m-1} + q_{m-2}) + (-1)^m (p_{m-1} - q_{m-1}\xi_n^{(2)})\\
&+ (-1)^{m+1} (a_mq_{m-1} + q_{m-2})\xi_n^{(2)} - (-1)^{m+1} (a_mp_{m-1} + p_{m-2})\,.
\end{align*} 
For $n \to \infty$, by (\ref{eq:3.3}) and with $\eta=p_m^{(1)}/q_m^{(1)}$ we obtain the limit
\begin{align*}
\lim_{n\to\infty} \left(\E(\xi_n^{(2)}) - \E(\xi_n^{(1)})\right) &= (-1)^m \left[(p_{m-1} - q_{m-1}\eta) + (p_m^{(1)} - q_m^{(1)}\eta)\right] \\
&= (-1)^m  \frac{p_{m-1}^{(1)}q_m^{(1)} - p_m^{(1)}q_{m-1}^{(1)}}{q_m^{(1)}} = \frac{1}{q_m^{(1)}}\,.
\end{align*}
In particular, by $1/q_m^{(1)}\neq0$, this proves that the function $\E$ is discontinuous at $\eta$.

It remains to prove that $\E$ is discontinuous at $\eta=0$. Let $\xi_n^{(1)}:=[ 0;n]$ and $\xi_n^{(2)}:=[ -1;1,n]$. Then both sequences $(\xi_n^{(1)})_{n\geq1}$ and $(\xi_n^{(2)})_{n\geq1}$ tend to $0$ for increasing $n$, but
\[
\E(\xi_n^{(1)}) = \frac{1}{n} \to 0 \quad (n \to \infty),
\]
wheras $\E(\xi_n^{(2)}) = 1$ holds for every positive integer $n$. Hence, Theorem~\ref{Thm2} is proven. \hfill $\Box$

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% section 4 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Proofs of Theorem \ref{Thm3} and Theorem \ref{Thm4}}\label{sec4}

\begin{proof}[Proof of Theorem \ref{Thm3}]
Let $m$ and $a_1,\ldots,a_m$ be positive integers. Set
\[
\xi_1 = [ 0;a_1,\dots ,a_{m-1},a_m ]\,, \qquad \xi_2 = [ 0;a_1,\dots ,a_{m-1},a_m + 1 ] \,.
\]
Then we have $\xi_1<\xi_2$ for even $m$ and $\xi_2<\xi_1$ otherwise. We define $I_m:=(\xi_1,\xi_2)$ for even $m$ and $I_m:=(\xi_2,\xi_1)$ for odd $m$, which depend on $a_1,\ldots,a_m$. The intervals $I_m$ are disjoint for different $m$-tuples $(a_1,\ldots,a_m)$. For any fixed $m$ the union of all closed intervals $\overline{I}_m$ gives the interval $[0,1]$. With this decomposition of $[0,1]$ we obtain
\begin{align}
\int_0^1 \E(\alpha) \,d\alpha &\,=\,\int_0^1 \sum_{m=0}^{\infty} {(-1)}^m (q_m \alpha - p_m) \,d\alpha \nonumber \\
&\,=\, \sum_{m=0}^{\infty} {(-1)}^m \int_0^1 (q_m \alpha - p_m) \,d\alpha \nonumber \\
&\,=\, \frac{1}{2} + \sum_{m=1}^{\infty} (-1)^m \sum_{a_1=1}^{\infty} \cdots \sum_{a_m=1}^{\infty} \int_{I_m} (q_m \alpha - p_m) \,d\alpha \nonumber\\
&\,=\, \frac{1}{2} + \sum_{m=1}^{\infty} \sum_{a_1=1}^{\infty} \cdots \sum_{a_m=1}^{\infty} \int_{\xi_1}^{\xi_2} (q_m \alpha - p_m) \,d\alpha 
\label{eq:intE}
\end{align}
and 
\begin{align}
\int_0^1 \E^*(\alpha) \,d\alpha &\,=\,\int_0^1 \sum_{m=0}^{\infty}  (q_m \alpha - p_m) \,d\alpha \nonumber \\
&\,=\, \frac{1}{2} + \sum_{m=1}^{\infty} \sum_{a_1=1}^{\infty} \cdots \sum_{a_m=1}^{\infty} \int_{I_m} 
(q_m \alpha - p_m) \,d\alpha \nonumber\\
&\,=\, \frac{1}{2} + \sum_{m=1}^{\infty} (-1)^m\sum_{a_1=1}^{\infty} \cdots \sum_{a_m=1}^{\infty} \int_{\xi_1}^{\xi_2} 
(q_m \alpha - p_m) \,d\alpha 
\label{eq:intE*}
\end{align}  
Every point $\alpha\in I_m$ satisfies $\alpha=[ 0;a_1,\dots ,a_{m-1},a_m,\ldots ]$, hence the convergents $p_{\nu}/q_{\nu}$ for $\nu\leq m$ depend on $I_m$, but not on $\alpha\in I_m$. Therefore, we derive
\[
\int_{\xi_1}^{\xi_2} (q_m \alpha - p_m) \,d\alpha = (\xi_2 - \xi_1) \,\frac{(\xi_2+\xi_1)q_m - 2p_m}{2} \,.
\]
Using
\[
\xi_1 = \frac{p_m}{q_m} \quad \mbox{and} \quad  \xi_2 = \frac{(a_m+1)p_{m-1} + p_{m-2}}{(a_m+1)q_{m-1} + q_{m-2}}
\]
we compute the expressions
\[
\xi_2 - \xi_1 = \frac{{(-1)}^m}{(q_{m} + q_{m-1}) q_m}  
\]
and
\[
\xi_2 + \xi_1 = \frac{p_{m-1}q_m + q_{m-1}p_m + 2p_mq_m}{(q_{m} + q_{m-1}) q_m}\,,  
\]
which give
\[
\int_{\xi_1}^{\xi_2} (q_m \alpha - p_m) \,d\alpha = \frac{1}{2q_m(q_{m} + q_{m-1})^2} \,.
\]
Substituting this integral into (\ref{eq:intE}) and (\ref{eq:intE*}), we finally get the formulas stated in the theorem.

\end{proof}

\begin{proof}[Proof of Theorem \ref{Thm4}]
First we show that
\begin{equation} \label{10a}
\frac{1}{2} + \frac{1}{2} \sum_{m=1}^{\infty} \,\sum_{a_1=1}^{\infty} \dots 
\sum_{a_m=1}^{\infty} \frac{1}{q_m{(q_m + q_{m-1})}^2}  = -\frac{3}{8} + \sum_{a=1}^{\infty} \frac{1}{a} \,\sum_{\substack{b=0 \\ \gcd(a,b)=1}}^{a-1} \frac{1}{(a + b)^2}\,.
\end{equation}
For the denominators of two subsequent convergents of the continued fraction expansion of $\alpha = [ 0; a_1,\ldots, a_m,\ldots]$ it is well-known that $\gcd(q_m, q_{m-1})=1$. For fixed $q_m=a$ we count the solutions of $q_{m-1} = b$ with $\gcd(a,b)=1$ and $0\leq b \leq a-1$ in the multiple sum on the left-hand side of (\ref{10a}). It is necessary to distinguish the cases $m\geq2$ and $m=1$. \\
\underline{Case 1:} $m\geq2$. First let $a_1=1$. Then, 
\[
\frac{q_{m-1}}{q_m} = [ 0; a_m,\ldots, a_2,1] = [ 0; a_m,\ldots, a_2+1]\,.
\]
For $a_1\geq2$ we have
\[
\frac{q_{m-1}}{q_m} = [ 0; a_m,\ldots, a_2, a_1] = [ 0; a_m,\ldots, a_2, a_1-1,1]\,.
\]
\underline{Case 2:} $m=1$. For $a_1=1$ we have a unique representation of the fraction
\[
\frac{q_{m-1}}{q_m} = \frac{q_{0}}{q_1} = \frac{1}{a_1} = \frac{1}{1} = [ 0; 1] \,,
\]
since the integer part $a_0=0$ must not be changed. For $a_1\geq2$ there are again two representations:
\[
\frac{q_{m-1}}{q_m} = \frac{q_{0}}{q_1} = \frac{1}{a_1} = [ 0; a_1] = [ 0; a_1-1,1]\,.
\]
Therefore it is clear that for fixed $q_m=a$ every $b$ with $\gcd(a,b)=1$ and $0\leq b \leq a-1$ occurs exactly two times in the multiple sum on the left-hand side of (\ref{10a}), except for $m=1$ and $a_1=1$. For this exceptional case we separate the term 
\[
\frac{1}{2q_1(q_1+q_0)^2} = \frac{1}{8}
\]
from the multiple sum. Then we obtain
\begin{align*} 
\frac{1}{2} + \frac{1}{2} \sum_{m=1}^{\infty} \,\sum_{a_1=1}^{\infty} &\dots 
\sum_{a_m=1}^{\infty} \frac{1}{q_m{(q_m + q_{m-1})}^2}  \\
&= \frac{1}{2} + \frac{1}{2} \sum_{m=2}^{\infty} \,\sum_{a_1=1}^{\infty} \dots 
\sum_{a_m=1}^{\infty} \frac{1}{q_m{(q_m + q_{m-1})}^2}  + \frac{1}{2} \sum_{a_1=2}^{\infty}\frac{1}{q_1{(q_1 + 1)}^2} + \frac{1}{8} \\
&= \frac{1}{2} + \sum_{a=1}^{\infty} \frac{1}{a} \,\sum_{\substack{b=1 \\ \gcd(a,b)=1}}^{a-1} \frac{1}{(a + b)^2} + \frac{1}{8} \\
&= \frac{1}{2} + \sum_{a=1}^{\infty} \frac{1}{a} \,\sum_{\substack{b=0 \\ \gcd(a,b)=1}}^{a-1} \frac{1}{(a + b)^2}  - 1 + \frac{1}{8} \\
&= -\frac{3}{8} + \sum_{a=1}^{\infty} \frac{1}{a} \,\sum_{\substack{b=0 \\ \gcd(a,b)=1}}^{a-1} \frac{1}{(a + b)^2}\,,
\end{align*}
which proves the identity in (\ref{10a}). 

Next we treat the double sum on the right-hand side of (\ref{10a}). Let $\mu$ denote the M\"obius function. Then we derive
\begin{align*}
\sum_{a=1}^{\infty} \frac{1}{a} \,\sum_{\substack{b=0 \\ \gcd(a,b)=1}}^{a-1} \frac{1}{(a + b)^2} &= \sum_{a=1}^{\infty} \frac{1}{a} \,\sum_{b=0}^{a-1} \sum_{\substack{d>0 \\ d|\gcd(a,b)}} \frac{\mu(d)}{(a + b)^2} 
= \sum_{a=1}^{\infty} \sum_{b=0}^{a-1} \sum_{\substack{d>0 \\ d|a\,\wedge\, d|b}} \frac{\mu(d)}{a(a + b)^2} \nonumber \\
&= \sum_{d=1}^{\infty} \sum_{\substack{a=1 \\ d|a}}^{\infty} \sum_{\substack{b=0 \\ d|b}}^{a-1} \frac{\mu(d)}{a(a + b)^2} 
= \sum_{d=1}^{\infty} \sum_{n=1}^{\infty} \sum_{m=0}^{n-1/d} \frac{\mu(d)}{nd(nd + md)^2} \nonumber 
\end{align*}
\begin{align*}
&= \sum_{d=1}^{\infty} \frac{\mu(d)}{d^3} \sum_{n=1}^{\infty} \sum_{m=0}^{n-1} \frac{1}{n(n + m)^2} 
= \frac{1}{\zeta(3)} \sum_{a=1}^{\infty} \sum_{b=0}^{a-1} \frac{1}{a(a + b)^2}\\
&= \frac{1}{\zeta(3)} \sum_{a=1}^{\infty} \frac{1}{a} \sum_{c=a}^{2a-1} \frac{1}{c^2} = \frac{1}{\zeta(3)} \sum_{c=1}^{\infty} \frac{1}{c^2} \sum_{a=\lfloor c/2 \rfloor +1 }^{c} \frac{1}{a} \\
&= \frac{1}{\zeta(3)} \sum_{c=1}^{\infty} \frac{1}{c^2} \sum_{a=1}^{c} \frac{(-1)^{a+1}}{a} \\
&= \frac{1}{\zeta(3)} \sum_{c=1}^{\infty} \frac{1}{c^2} \sum_{a=1}^{c-1} \frac{(-1)^{a+1}}{a} + \frac{1}{\zeta(3)} \sum_{c=1}^{\infty} \frac{(-1)^{c+1}}{c^3} \\
&= - \frac{\zeta(2,-1)}{\zeta(3)} + \frac{3}{4}\,,
\end{align*}
where
\[
\zeta(2,-1) = \sum_{c=1}^{\infty} \frac{1}{c^2} \sum_{a=1}^{c-1} \frac{(-1)^{a}}{a} = \sum_{c>a>0} \frac{(-1)^{a}}{ac^2}
\]
is a special case of the multivariate zeta function (see \cite[Section 2.6]{Ba}), satisfying
\[
\zeta(2,-1) = \zeta(3) - \frac{3}{2} \zeta(2)\log2\,.
\]
Collecting together we obtain from (\ref{10a}) that
\[
\int_0^1 \E(\alpha) \,d\alpha = -\frac{3}{8} - 1 + \frac{3}{4} + \frac{3}{2} \frac{\zeta(2)\log{2}}{\zeta(3)} = -\frac{5}{8} + \frac{3\zeta(2)\log{2}}{2\zeta(3)} \,,
\]
which completes the proof of the theorem. 

\end{proof}

\begin{remark}
Let $n$ be a positive integer. We consider a modified error sum function given by
\[
\sum_{m\geq0} |\alpha q_m - p_m|^n \qquad (0<\alpha<1)\,.
\]
By similar methods as used to deduce Theorems~\ref{Thm3} and \ref{Thm4} we obtain the following identities:
\begin{align*}
\int_0^1 \sum_{m\geq0} |\alpha q_m - p_m|^n \,d\alpha \,&=\, \frac{1}{n+1} + \frac{1}{n+1} \sum_{m=1}^{\infty} \,\sum_{a_1=1}^{\infty} \dots 
\sum_{a_m=1}^{\infty} \frac{1}{q_m{(q_m + q_{m-1})}^{n+1}} \\
&= \frac{1}{n+1} \left(1 - \frac{1}{2^{n+1}} - \frac{2\zeta(n+1,-1)}{\zeta(n+2)}\right) 
\end{align*}
with the multivariate zeta function $\zeta(n+1,-1)$ defined by
\[
\zeta(n+1,-1) = \sum_{m_2>m_1>0}\frac{(-1)^{m_1}}{m_1m_2^{n+1}}\,.
\]
\end{remark}
This yields an asymptotic expansion, namely
\[
\int_0^1 \sum_{m\geq0} |\alpha q_m - p_m|^n \,d\alpha = \frac{1}{n+1} + \mathcal{O}\left(\frac{1}{(n+1)2^n}\right) \qquad (n\to \infty)\,.
\]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% section 5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\section{Generalization of the error sum function $\E$}\label{sec5}
In this section we show that the error sum function $\E$ is the special case of a more general concept involving the theory of approximation with algebraic numbers of bounded degree. We need some notations to recall the definition of the Mahler functions $w_n(H,\alpha)$ and
$w_n(\alpha)$. For more details on this function we refer to \cite{Schneider}. \\ 
For any polynomial \(P(x) \in {\Z}[x] \) we denote by \(H(P) \) the {\it height} of the polynomial \(P\), which is given by the maximum value of the
modulus of the coefficients. Let $n,H$ be positive integers and $\alpha \in {\C}$ with $|\alpha| \leq 1/2$ and $\deg \alpha >n$. For $\alpha$
being transcendental we define $\deg \alpha = \infty$. Set 
\begin{eqnarray*}
w_n(H,\alpha) &\,:=\,& \min_{\scriptsize \begin{array}
{c} P \in {\Z}[x]\setminus \{ 0 \} \\ \deg P \leq n \\ H(P) \leq H \end{array}} 
\big| P(\alpha) \big| \,,\\
w_n(\alpha) &\,:=\,& \limsup_{H\to \infty} \frac{-\log w_n(H,\alpha)}{\log H} \,.  
\end{eqnarray*}
$w_n(\alpha)$ is the largest positive real number such that for every $\varepsilon >0$ there are infinitely many polynomials $P$ from ${\Z}[x]$ of
degree at most $n$ satisfying
\[
\big| P(\alpha) \big| \,<\, {\big( H(P) \big)}^{-w_n(\alpha)+\varepsilon} \,.
\]
So the function $w_n(H,\alpha)$ is needed to define the important Mahler function $w_n(\alpha)$. From the definition of $w_n(H,\alpha)$ it follows
immediately that $w_1(H,\alpha) \geq w_2(H,\alpha) \geq \dots \geq w_n(H,\alpha)$ holds for all integers $n=1,2,\dots $. \\
Given $\alpha$ and some positive integer $n$ with $\deg \alpha >n$, there is a unique sequence ${(H_m)}_{m\geq 0}$ of positive integers satisfying the following conditions:
\[
\begin{array}{rl}
(i) \quad & 1 = H_0 < H_1 < \dots < H_m < \dots \\
(ii) \quad & w_n(H_0,\alpha) > w_n(H_1,\alpha) > \dots > w_n(H_m,\alpha) > \dots \\
(iii) \quad & w_n(H_m,\alpha) = w_n(H_{m+1}-1,\alpha) \qquad (m=0,1,\dots)
\end{array}
\]
We define the generalized error sum function 
\[
{\E}_n(\alpha) \,:=\, \sum_{m=0}^{\infty} w_n(H_m,\alpha) \,.
\]
Note that ${\E}_n(\alpha)={\E}_n(-\alpha)$ holds, since the same is obviously true for the Mahler function: $w_n(H,\alpha)=
w_n(H,-\alpha)$. 
For $n=1$ and $\alpha \in {(-1/2,1/2) \setminus {\Q}}$ we have $p_0/q_0 \in \{ -1/1,0/1 \}$ and $p_1/q_1 = 1/a_1$, where $a_1=1$ holds if and only if $-1/2<\alpha <0$. 
This implies that
\[
w_1(H_m,\alpha) \,= \quad \left\{ \begin{array}{ll} 
|q_{m}\alpha - p_{m}|, \,\,& \mbox{if} \,\,0 < \alpha < 1/2; \,,\\
|q_{m+1}\alpha - p_{m+1}|, \,\,& \mbox{if} \,\,-1/2 < \alpha < 0;
\end{array} \right. \quad (m=0,1,\dots ) \,.
\]
Therefore, 
\[
{\E}_1(\alpha) \,= \quad \left\{ \begin{array}{ll} 
{\E}(\alpha), \,\,& \mbox{if} \,\,0 < \alpha < 1/2; \,,\\
{\E}(\alpha) - \alpha -1, \,\,& \mbox{if} \,\,-1/2 < \alpha < 0; \,,
\end{array} \right. 
\]
where $\alpha +1$ equals $q_0\alpha - p_0$ in the second case. Let 
\[
{\E}_n \,:=\, \sup \big\{ {\E}_n(\alpha) \,:\,\alpha \in (-1/2,1/2) \,\wedge \,\deg \alpha >n \big\}  \qquad (n=1,2,\dots) \,.
\]
Then it is clear that for $n=1,2,\dots $ 
\begin{eqnarray*}
{\E}_n &\,=\,& \sup \Big\{ \sum_{m=0}^{\infty} w_n(H_m,\alpha) \,:\,\alpha \in (-1/2,1/2) \,\wedge \,\deg \alpha >n \Big\} \\
&\,\leq \,& \sup \Big\{ \sum_{m=0}^{\infty} w_1(H_m,\alpha) \,:\,\alpha \in (-1/2,1/2) \,\wedge \,\deg \alpha >n \Big\} \\
&\,\leq \,& {\E}_1 \,=\,\sup \big\{ {\E}_1(\alpha) \,:\,\alpha \in (-1/2,1/2) \,\wedge \,\deg \alpha >1 \big\} \\ 
&\,\leq & \rho \,.
\end{eqnarray*}
This bound can be improved by applying two inequalities based on Siegel's Lemma. Let $\alpha\in \C$ with $|\alpha|<1/2$. For real $\alpha$ and any positive integers $n, H$ we have
\begin{equation}\label{eq:5.1}
w_n(H,\alpha) < (n+1) H^{-n}\,.
\end{equation} 
For $\alpha\notin \R$ and any positive integers $n, H$ we have
\begin{equation}\label{eq:5.2}
w_n(H,\alpha) < \sqrt{2}(n+1) H^{-(n-1)/2}\,.
\end{equation} 
These inequalities can be found on page 69 in \cite{Schneider}, where the constants $C_1$ and $C_2$ are given by \cite[Hilfssatz 27, Hilfssatz 28]{Schneider}. In what follows we distinguish whether $\alpha$ is real or not.

\textit{Case 1:} $\alpha\in\R$. By using 
\[
w_n(1,\alpha) \leq \max_{-1/2\leq x \leq 1/2} |{x^n}| = \frac{1}{2^n}
\]
we obtain with (\ref{eq:5.1}) and the Riemann zeta function for $n\geq2$
\begin{align*}
\E_n(\alpha) &= \sum_{m=0}^{\infty} w_n(H_m,\alpha) = w_n(1,\alpha) + \sum_{m=1}^{\infty} w_n(H_m,\alpha) \\
&\leq \frac{1}{2^n} + \sum_{m=1}^{\infty} w_n(m+1,\alpha) \leq \frac{1}{2^n} + \sum_{m=1}^{\infty} \frac{n+1}{(m+1)^n} \\
&= \frac{1}{2^n} + (n+1) \big(\zeta(n)-1\big) \quad \to 0 \qquad (\mbox{for } n \to \infty)\,. 
\end{align*}
\textit{Case 2:} $\alpha\notin\R$. Here we consider the polynomial $z^n$ for $|z|\leq 1/2$. Then,
\[
w_n(1,\alpha) \leq \max_{|z| \leq 1/2} |{z^n}| = \frac{1}{2^n}\,.
\]
With (\ref{eq:5.2}) we repeat the arguments from Case 1 for $n\geq4$:
\begin{align*}
\E_n(\alpha) &\leq w_n(1,\alpha) + \sum_{m=1}^{\infty} \frac{\sqrt{2}(n+1)}{(m+1)^{(n-1)/2}} \\
&\leq \frac{1}{2^n} + \sqrt{2}(n+1) \left(\zeta\left(\frac{n-1}{2}\right)-1\right) \quad \to 0 \qquad (\mbox{for } n \to \infty)\,. 
\end{align*}
Note that the inequality
\[
\frac{1}{2^n} + (n+1) \big(\zeta(n)-1\big) < \rho
\]
holds for $n\geq 3$, whereas
\[
\frac{1}{2^n} + \sqrt{2}(n+1) \left(\zeta\left(\frac{n-1}{2}\right)-1\right) < \rho
\]
is true for $n\geq 5$.

\section{Acknowledgments}
The authors are much obliged to Mr. H. A.\ ShahAli and Professor
A.\ Ustinov. Mr.\ ShahAli has drawn our attention to the paper \cite{RP}
of J. N.\ Ridley and G.\ Petruska. Professor A.\ Ustinov, who joined the
second author at the Journ{\'e}es Arithm{\'e}tiques 2011 in
Vilnius, has given useful hints to compute the value of the integral in
Theorem~\ref{Thm4}.


\begin{thebibliography}{19}

\bibitem{Ba} D. H.\ Bailey,  J. M.\ Borwein, N. J.\ Calkin, R.\ Girgensohn,
D. R.\ Luke, and V. H.\ Moll, \textit{Experimental Mathematics in Action},
A. K. Peters, 2007. 
\bibitem{Els1} C.\ Elsner, Series of error terms for rational approximations of irrational numbers,
\textit{J. Integer Sequences} {\bf 14} (2011), 
\href{http://www.cs.uwaterloo.ca/journals/JIS/VOL14/Elsner/elsner9.html}{Article 11.1.4}.

\bibitem{Els2} C.\ Elsner and M.\ Stein, On the value distribution of error sums for approximations with rational numbers, submitted.

\bibitem{K} A.\ Khintchine, \textit{Kettenbr\"uche}, Teubner, 1956.

\bibitem{Schneider} Th.\ Schneider, \textit{Einf{\"u}hrung in die transzendenten Zahlen}, Springer-Verlag, 1957.

\bibitem{Perron} O.\ Perron, {\em Die Lehre von den Kettenbr{\"u}chen\/}, Chelsea Publishing Company, 1929.
 
\bibitem{RP} J. N.\ Ridley and G.\ Petruska, The error-sum function of continued fractions, \textit{Indag. Mathem., N.S.}, \textbf{11} (2), 2000, 273--282.

\bibitem{Shid} 
A. B.\ Shidlovskii, \textit{Transcendental Numbers}, de Gruyter, 1989.
\end{thebibliography}

\bigskip
\hrule
\bigskip

\noindent 2010 {\it Mathematics Subject Classification}:
Primary 11J04; Secondary  11J70, 11B05, 11B39.

\noindent \emph{Keywords: } 
continued fractions, convergents, approximation of real numbers, error terms, density.

\bigskip
\hrule
\bigskip

\noindent (Concerned with sequences
\seqnum{A000045},
\seqnum{A007676},
\seqnum{A007677},
\seqnum{A041008}, and
\seqnum{A041009}.)

\bigskip
\hrule
\bigskip

\vspace*{+.1in}
\noindent
Received May 13 2011;
revised versions received  July 12 2011; August 17 2011.
Published in {\it Journal of Integer Sequences}, September 25 2011.

\bigskip
\hrule
\bigskip

\noindent
Return to
\htmladdnormallink{Journal of Integer Sequences home page}{http://www.cs.uwaterloo.ca/journals/JIS/}.
\vskip .1in


\end{document}

