\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}

\DeclareMathOperator{\id}{Id}

\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}

\begin{center}
\vskip 1cm{\LARGE\bf 
An Asymptotic Formula for Short Sums of Gcd-Sum Functions 
}
\vskip 1cm
\large
Olivier Bordell\`es\\
2, all\'{e}e de la Combe\\
43000 Aiguilhe\\
France\\
\href{mailto:borde43@wanadoo.fr}{\tt borde43@wanadoo.fr}
\end{center}


\vskip .2 in

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

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

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

\newcommand{\N}{\mathbb {N}}
\newcommand{\Z}{\mathbb {Z}}
\newcommand{\Q}{\mathbb {Q}}
\newcommand{\R}{\mathbb {R}}
\newcommand{\C}{\mathbb {C}}
\newcommand{\K}{\mathbb {K}}


\begin{abstract}
In this note, we prove an asymptotic formula for sums, over short
segments, of the composition of the gcd and arithmetic functions
belonging to certain classes.  Two examples are also given.
\end{abstract}


\section{Introduction and main results}
\label{s1}
There has been renewed interest in gcd-sum functions over the last few years. We refer to \cite{hau,tot} for a survey. In \cite{bor}, it is shown that 
$$\sum_{n \leq x} \left ( \sum_{i=1}^{n} f(\gcd(i,n)) \right ) = \frac{x^2 F(2)}{2 \zeta(2)} + O \left \{ x \prod_{p \leq x} \left ( 1 + \sum_{l=1}^{\infty} \frac{ \left | f \left ( p^l \right ) - f \left ( p^{l-1} \right ) \right |}{p^l} \right ) + x(\log x)^{\alpha} \right \}$$
under the sole hypothesis 
     \begin{alignat}{1}
         \sum_{n \leq x} \left | (f \star \mu )(n) \right | & \ll x (\log x)^{\alpha} \label{h1} 
     \end{alignat}
where $\alpha \geq 0$, $F(s)$ is the Dirichlet series of the arithmetic function $f$ and the Dirichlet convolution product $f \star g$ of $f$ and $g$ is defined by $\left( f \star g \right) (n) = \sum_{d \mid n} f(d) g \left ( n/d \right )$.

It can easily be deduced that, if $f$ satisfies \eqref{h1}, then for large real numbers $x,y$ such that $x^{1/2} \leq y \leq x$, we have
     \begin{eqnarray*}
\sum_{x < n \leq x+y} \left ( \sum_{i=1}^{n} f(\gcd(i,n)) \right ) &=& y \left( 2x+y \right) \frac{F(2)}{2\zeta(2)} \\
     & & {} + O \left \{ x \prod_{p \leq x} \left ( 1 + \sum_{l=1}^{\infty} \frac{ \left | f \left ( p^l \right ) - f \left ( p^{l-1} \right ) \right |}{p^l} \right ) + x(\log x)^{\alpha} \right \}.
     \end{eqnarray*}

The aim of the present work is to study similar short sums when $f$ lies into a wider class of arithmetic functions. More precisely, we consider the class of real-valued multiplicative functions satisfying  
     \begin{alignat}{1}
     & \sum_{n \leq x} \frac{ |(f \star \mu)(n)|}{n} \ll x^a \quad \left( 0 \leq a \leq \tfrac{1}{2} \right) \label{h2} \\
     & \sum_{n \leq x} \frac{(f \star \mu)(n)^2}{n^2} \ll x^b \quad \left( 0 \leq b \leq 1\right) \label{h3} 
     \end{alignat}
for all $x \geq 1$. We will prove the following asymptotic formula.

\begin{theorem}
\label{t}
Let $f$ be a real-valued multiplicative function satisfying \eqref{h2} and \eqref{h3} with Dirichlet series $F(s)$. Then for $x^{1/3} \leq y \leq x$, we have
$$\sum_{x < n \leq x+y} \left ( \sum_{i=1}^{n} f(\gcd(i,n)) \right ) =  y \left( 2x+y \right) \frac{F(2)}{2\zeta(2)} + O \left( x^{1 + a/2+b/4} y^{1/4} (\log x)^{1/4} \right).$$
\end{theorem}

Note that this result is non-trivial whenever $x^{(4+2a+b)/7} (\log x)^{1/7} \leq y \leq x$.

Let $k \geq 2$ be a fixed integer and $s_k$ be the characteristic function of the set of $k$-full numbers. Denote $\id : n \longmapsto n$ and consider the multiplicative function $\id \cdot s_k$. Similarly, let $M_k(n)$ be the maximal $k$-full divisor of $n$ (see \cite{sur} for instance). It can easily be seen that both functions $\id \cdot s_k$ and $M_k$ satisfy the assumptions \eqref{h2} and \eqref{h3} with $a=b=\frac{1}{k}$, and hence do not satisfy \eqref{h1}.  Theorem~\ref{t} implies the following result.

\begin{corollary}
\label{c}
Let $k \geq 2$ be an integer. For $x^{1/3} \leq y \leq x$, we have
$$\sum_{x < n \leq x+y} \left ( \, \sum_{\substack{i=1 \\ \gcd(i,n) \; k\text{-}\mathrm{full}}}^{n} \gcd(i,n) \right ) =  \frac{y \left( 2x+y \right)}{2\zeta(2)} \prod_p \left( 1+\frac{1}{p^{k-1}(p-1)} \right) +~O \left( x^{1 + \frac{3}{4k}} y^{1/4} (\log x)^{1/4} \right)$$
and
$$\sum_{x < n \leq x+y} \left ( \sum_{i=1}^{n} M_k(\gcd(i,n)) \right ) = \frac{C_k \, y \left( 2x+y \right)}{2\zeta(2)} + O \left( x^{1 + \frac{3}{4k}} y^{1/4} (\log x)^{1/4} \right)$$
where 
$$C_k := \prod_p \left( 1+ \frac{p^{2k}+p^{k+1}(p+1)-p^2}{p^{2k}(p^2-1)}\right).$$
\end{corollary}

\section{Notation}
\label{n}

In what follows, $1 \leq y \leq x$ are large real numbers and $N \geq 1$ is a large integer. Let $f$ be a real-valued multiplicative function satisfying \eqref{h2} and \eqref{h3}, and let $g:=f \star \mu$ be the Eratosthenes transform of $f$. According to the usual practice, for all $x \in \R$, $\lfloor x \rfloor$ is the integer part of $x$ and $\lVert x \rVert$ is the distance from $x$ to its nearest integer. $\varphi$ is the Euler totient function and $\mu$ is the M\"{o}bius function.

\section{Proof of Theorem~\ref{t}}
\label{s2}

First, note that by \eqref{h2} and Abel summation, we have for all $z \geq 1$
\begin{alignat}{1}
  \sum_{n > z} \frac{|g(n)|}{n^2} \ll z^{-1+a}. \label{h4}
\end{alignat}
Next, using Ces\'{a}ro's identity \cite{ces}
$$\sum_{i=1}^{n} f(\gcd(i,n)) = (f \star \varphi)(n)$$
and using $\varphi = \mu \star \mathrm{Id}$, we get
\begin{eqnarray*}
     \sum_{x<n \leq x+y} \left ( \sum_{i=1}^{n} f(\gcd(i,n)) \right ) &=& \sum_{x<n \leq x+y} \left ( g \star \mathrm{Id} \right ) (n) \\
     & =& \sum_{d \leq x+y} g(d) \sum_{x/d < k \leq (x+y)/d} k \\
     & =& \frac{1}{2} \sum_{d \leq x+y} g(d) \left( \left \lfloor \frac{x+y}{d} \right \rfloor- \left \lfloor \frac{x}{d} \right \rfloor \right) \left( \left \lfloor \frac{x+y}{d} \right \rfloor + \left \lfloor \frac{x}{d} \right \rfloor + 1 \right) \\
     & = & \frac{1}{2} \sum_{d \leq 2y} g(d) \left( \left \lfloor \frac{x+y}{d} \right \rfloor- \left \lfloor \frac{x}{d} \right \rfloor \right) \left( \left \lfloor \frac{x+y}{d} \right \rfloor + \left \lfloor \frac{x}{d} \right \rfloor + 1 \right) \\
     & & {} + \sum_{2y < d \leq x+y} g(d) \left \lfloor \frac{x+y}{d} \right \rfloor \left( \left \lfloor \frac{x+y}{d} \right \rfloor - \left \lfloor \frac{x}{d} \right \rfloor \right) \\
     & := & \Sigma_1 + \Sigma_2.
\end{eqnarray*}

\subsection{The sum $\Sigma_1$}
\label{s21}

Since
$$\frac{1}{2} \left( \left \lfloor \frac{x+y}{d} \right \rfloor- \left \lfloor \frac{x}{d} \right \rfloor \right) \left( \left \lfloor \frac{x+y}{d} \right \rfloor + \left \lfloor \frac{x}{d} \right \rfloor + 1 \right) =  \frac{y}{2d^2} \left( 2x+y \right)+ O \left( \frac{x}{d} \right)$$
we get using \eqref{h2} and \eqref{h4}
\begin{eqnarray*}
     \Sigma_1 &=& \frac{y}{2} \left( 2x+y \right) \sum_{d \leq 2y} \frac{g(d)}{d^2} + O \left( x \sum_{d \leq 2y} \frac{|g(d)|}{d} \right)  \\
     &=& \frac{y}{2} \left( 2x+y \right) \sum_{d =1}^{\infty} \frac{g(d)}{d^2} - \frac{y}{2} \left( 2x+y \right) \sum_{d > 2y} \frac{g(d)}{d^2} + O \left( x y^a \right)  \\
     &=& y \left( 2x+y \right) \frac{F(2)}{2\zeta(2)} + O \left( xy^a \right).
\end{eqnarray*}

\subsection{The sum $\Sigma_2$}
\label{s22}

\begin{lemma}
\label{le3}
If $x^{1/3} \leq y \leq x$, then
$$\sum_{2y < n \leq x+y} \left( \left \lfloor\frac{x+y}{n} \right \rfloor - \left \lfloor \frac{x}{n} \right \rfloor \right) \ll y \log x.$$
\end{lemma}

\begin{proof}
If $N \geq 1$ is a large integer, $\delta \in \left( 0,\frac{1}{2} \right)$ and if $h : \left[ N,2N \right] \longrightarrow \R$ is any function, then let $\mathcal{R} (h,N,\delta)$ be the number of integers $n \in [N,2N]$ such that $\lVert h(n) \rVert < \delta$. The second derivative test for $\mathcal{R} (h,N,\delta)$ (see \cite[Corollaire]{bra}) states that, if $h \in C^2 [N,2N]$ such that there exists $T \geq 1$ such that $|h'(x)| \asymp TN^{-1}$ and $|h''(x)| \asymp TN^{-2}$, then
$$\mathcal{R} (h,N,\delta) \ll (NT)^{1/3} + N \delta + (T \delta)^{1/2}.$$
Now using this estimate with $T=xN^{-1}$ and $\delta = yN^{-1}$, we get
\begin{eqnarray*}
   \sum_{2y < n \leq x+y} \left( \left \lfloor\frac{x+y}{n} \right \rfloor - \left \lfloor \frac{x}{n} \right \rfloor \right) &=&  \left( \sum_{2y < n \leq x} + \sum_{x < n \leq x+y} \right) \left( \left \lfloor\frac{x+y}{n} \right \rfloor - \left \lfloor \frac{x}{n} \right \rfloor \right) \\
   & \ll & \max_{2y < N \leq x} \sum_{N < n \leq 2N} \left( \left \lfloor\frac{x+y}{n} \right \rfloor - \left \lfloor \frac{x}{n} \right \rfloor \right) \log x + y \\
   & \ll & \max_{2y < N \leq x} \mathcal{R} \left( \frac{x}{n},N,\frac{y}{N} \right) \log x + y \\
   & \ll & \max_{2y < N \leq x} \left( x^{1/3} + y + (xy)^{1/2} N^{-1} \right) \log x + y \\
   & \ll & \left( x^{1/3} + y + \left( xy^{-1} \right)^{1/2} \right) \log x + y \ll y \log x
\end{eqnarray*}
since $y \geq x^{1/3}$.
\end{proof}

Now using the Cauchy-Schwarz inequality and Lemma~\ref{le3}, we get
\begin{eqnarray*}
   \left | \Sigma_2 \right | & \leq & 2x \sum_{2y < d \leq x+y} \frac{|g(d)|}{d} \left( \left \lfloor\frac{x+y}{d} \right \rfloor - \left \lfloor \frac{x}{d} \right \rfloor \right) \\
   & \ll & x \left( \sum_{2y < d \leq x+y} \frac{g(d)^2}{d^2} \right)^{1/2} \left( \sum_{2y < d \leq x+y} \left( \left \lfloor\frac{x+y}{d} \right \rfloor - \left \lfloor \frac{x}{d} \right \rfloor \right) \right)^{1/2} \\
   & \ll & x y^{1/2} \left( \sum_{2y < d \leq x+y} \frac{g(d)^2}{d^2} \right)^{1/2} (\log x)^{1/2}
\end{eqnarray*}
whenever $x^{1/3} \leq y \leq x$, and the hypothesis \eqref{h3} provides
$$\left | \Sigma_2 \right | \ll x^{1+b/2} y^{1/2} (\log x)^{1/2}.$$
We also have trivially using \eqref{h2}
$$\left | \Sigma_2 \right | \ll x \sum_{2y < d \leq x+y} \frac{|g(d)|}{d} \ll x^{1+a}$$
and hence
$$\left | \Sigma_2 \right | \ll \min \left( x^{1+a}, x^{1+b/2} y^{1/2} (\log x)^{1/2} \right) \ll x^{1+a/2+b/4} y^{1/4} (\log x)^{1/4}.$$
We conclude the proof with the following remarks: if $0 \leq a \leq \frac{1}{4}$, then
$$xy^a \leq xy^{1/4} \leq x^{1+a/2+b/4} y^{1/4}.$$
If $\frac{1}{4} < a \leq \frac{1}{2}$, then $x^{1+a/2+b/4} y^{1/4} \geq xy^a$ as soon as $y \leq x^{\frac{2a+b}{4a-1}}$ which is trivially true since in that case we have
$$\frac{2a+b}{4a-1} \geq b+1 \geq 1$$
since $b \geq 0$.
\qed

\section{Acknowledgments}
I am indebted to the referee for his careful reading of the manuscript
and some valuable suggestions and corrections he made. 

\begin{thebibliography}{9}
\bibitem{bor} O. Bordell\`es, The composition of the gcd and certain
arithmetic functions, \textit{J. Integer Sequence} \textbf{10} (2010),
\href{http://www.cs.uwaterloo.ca/journals/JIS/VOL13/Bordelles/bordelles6.html}{Article 10.7.1}.

\bibitem{bra} M. Branton and P. Sargos, Points entiers au voisinage
d'une courbe plane \`{a} tr\`{e}s faible courbure, \textit{Bull. Sci.
Math.} \textbf{118} (1994), 15--28.

\bibitem{ces} E. Ces\'{a}ro, \'Etude moyenne du plus grand commun
diviseur de deux nombres, \textit{Ann. Mat. Pura Appl.} \textbf{13}
(1885), 235--250.

\bibitem{hau} P. Haukkanen, On a gcd-sum function, \textit{Aequationes
Math.} \textbf{76} (2008), 168--178.

\bibitem{sur} D. Suryanarayana and P. Subrahmanyam, The maximal
$k$-full divisor of an integer, \textit{Indian J. Pure Appl. Math.}
\textbf{12} (1981), 175--190.

\bibitem{tot} L. T\'{o}th, A survey of gcd-sum functions, \textit{J.
Integer Seq.} \textbf{12} (2010), 
\href{http://www.cs.uwaterloo.ca/journals/JIS/VOL13/Toth/toth10.html}{Article 10.8.1}.

\end{thebibliography}

\bigskip
\hrule
\bigskip

\noindent 2010 {\it Mathematics Subject Classification}:
Primary 11A25; Secondary 11N37.

\noindent \emph{Keywords: } Short sum, composition, Dirichlet
convolution, asymptotic result.

\bigskip
\hrule
\bigskip

\noindent
(Concerned with sequence 
\seqnum{A018804}.)

\bigskip
\hrule
\bigskip

\vspace*{+.1in}
\noindent
Received April 13 2012;  revised versions received 
June 14 2012; July 15 2012.
Published in {\it Journal of Integer Sequences}, July 17 2012.

\bigskip
\hrule
\bigskip

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


\end{document}

                                                                                

