Hostname: page-component-7b9c58cd5d-hpxsc Total loading time: 0 Render date: 2025-03-14T12:00:16.773Z Has data issue: false hasContentIssue false

Asymptotics for crank of overpartitions

Published online by Cambridge University Press:  09 January 2025

Edward Y.S. Liu
Affiliation:
School of Science, Chongqing University of Posts and Telecommunications, Chongqing 400065, P.R. China e-mail: liuyongshan@cqupt.edu.cn
Helen W.J. Zhang*
Affiliation:
School of Mathematics, Hunan University, Changsha 410082, P.R. China and Research Institute of Hunan University in Chongqing, Chongqing 401120, P.R. China
Ying Zhong
Affiliation:
School of Mathematics, Hunan University, Changsha 410082, P.R. China e-mail: YingZhong@hnu.edu.cn
Rights & Permissions [Opens in a new window]

Abstract

Let $\overline {M}(a,c,n)$ denote the number of overpartitions of n with first residual crank congruent to a modulo c with $c\geq 3$ being odd and $0\leq a<c$. The central objective of this paper is twofold: firstly, to establish an asymptotic formula for the crank of overpartitions; and secondly, to establish several inequalities concerning $\overline {M}(a,c,n)$ that encompasses crank differences, positivity, and strict log-subadditivity.

Type
Article
Copyright
© The Author(s), 2025. Published by Cambridge University Press on behalf of Canadian Mathematical Society

1 Introduction

The objective of this paper is to derive an asymptotic formula for the crank of overpartitions, and subsequently utilize this formula to demonstrate several inequalities of crank function. A partition of a positive integer n is understood to be a sequence of non-decreasing positive integers that sum to n. The function $p(n)$ represents the total number of partitions of n. In exploring a combinatorial explanation for the three notable congruences of $p(n)$ discovered by Ramanujan, Dyson [Reference Dyson13] proposed the notion of the rank of a partition. This rank is determined by the discrepancy between the difference between the largest part and the number of parts. Dyson conjectured that the rank of a partition could explain the congruences for $p(5n+4)$ and $p(7n+5)$ , but not for $p(11n+6)$ , which was confirmed by Atkin and Swinnerton–Dyer [Reference Atkin and Swinnerton-Der3]. Furthermore, Dyson hypothesized the existence of another statistic, specifically the crank, which he proposed could illuminate all of Ramanujan’s congruences. This crank concept was subsequently brought to fruition by Andrews and Garvan [Reference Andrews and Garvan2, Reference Garvan14], where the crank of a partition $\lambda $ , is defined as the largest part of $\lambda $ if there are no ones in the partition; otherwise, it is defined as the number of parts larger than the number of ones minus the number of ones.

Since their inception, the ranks and cranks of partitions have become subjects of extensive study, with particular focus on their asymptotic behavior and differences in rank or crank. Let $N(a, c, n)$ (resp. $M(a,c,n)$ ) denote the number of partitions of n with rank (resp. crank) congruent to a modulo c. Bringmann [Reference Bringmann5] utilized the Hardy–Ramanujan circle method to derive an asymptotic formula for $N(a, c, n)$ . Expanding on this foundation, Bringmann and Kane [Reference Bringmann and Kane8] proceeded to establish an inequality for $N(a, c, n)$ . Moreover, Rolon [Reference Zapata Rolon18] demonstrated analogous asymptotics and inequalities for $M(a,c,n)$ .

As expected, this prompted further study of the rank and crank for other types of restricted partitions. With the definition of overpartitions, the concepts of rank [Reference Lovejoy17] and crank [Reference Bringmann, Lovejoy and Osburn7] were straightforwardly extended to these. Recall that an overpartition [Reference Corteel and Lovejoy11] of a nonnegative integer n is a partition of n, but with the addition that the first occurrence of each distinct part may be overlined, and $\overline {p}(n)$ represents the total number of overpartitions of n. Many mathematicians have contributed to understanding the asymptotics [Reference Bringmann and Lovejoy6, Reference Ciolan9] and inequalities [Reference Ciolan10, Reference Cui, Gu and Su12, Reference Jennings-Shaffer15, Reference Ji, Zhang and Zhao16] related to the rank of overpartitions.

Analogous to the crank of an ordinary partition, Bringmann, Lovejoy, and Osburn [Reference Bringmann, Lovejoy and Osburn7] proposed the concept of the first residual crank for an overpartition. The first residual crank of an overpartition is defined as the crank of the subpartition formed by the non-overlined parts. For instance, consider the overpartition $\lambda =(\bar {9},9,7,\bar {6},5,5,\bar {4},4,3,\bar {1},1,1)$ . The subpartition composed of its non-overlined parts is $(9,7,5,5,4,3,1,1)$ . Consequently, the first residual crank of $\lambda $ is determined to be $4$ .

Before we state one of main results of this paper, we recall certain facts about Dedekind sums. If $x \in \mathbb {R}$ , then let

$$\begin{align*}((x)):= \begin{cases}x-\lfloor x\rfloor-\frac{1}{2} & \text { for } x \in \mathbb{R} \backslash \mathbb{Z}, \\ 0 & \text { if } x \in \mathbb{Z} .\end{cases} \end{align*}$$

For coprime integers h and k, let $s(h, k)$ be the usual Dedekind sum

$$\begin{align*}s(h, k):=\sum_\mu\left(\left(\frac{\mu}{k}\right)\right)\left(\left(\frac{h \mu}{k}\right)\right). \end{align*}$$

In terms of these sums, we define $\omega _{h, k}$ by

$$\begin{align*}\omega_{h, k}:=e^{\pi i s(h, k)}. \end{align*}$$

For coprime integers h and k, with $k>0$ , we let $h'$ denote a choice of an inverse of $-h$ modulo k, that is, $h'$ is a solution to $hh'\equiv -1\pmod {k}$ . Furthermore, consider $0 < a < c$ as coprime integers with $c\geq 3$ being odd. Let $k_1:=\frac {k}{(k,c)},~c_1:=\frac {c}{(k,c)}$ and $0<l<c_1$ be defined by the congruence $l\equiv ak_1~(\text {mod}~c_1)$ . Lastly, for $m,n\in \mathbb {Z}$ and $c|k$ , we proceed to define the following sum of Kloosterman type

$$ \begin{align*} \overline{B}_{a,c,k}(n,m):=(-1)^{ak+1}\sin\left(\frac{\pi a}{c}\right) \sum_{h\pmod{k}^*}\frac{\omega_{h,k}^2\omega_{2h,k}^{-1}}{\sin\left(\frac{\pi ah'}{c}\right)}e^{-\frac{\pi ia^2kh'}{c^2}}e^{\frac{2\pi i}{k}(hn+h'm)}, \end{align*} $$

where the sum runs over all primitive residue classes h modulo k. For the case $c\nmid k$ , we introduce another Kloosterman-type sum as follows:

$$ \begin{align*} \overline{D}_{a,c,k}(n,m):=(-1)^{ak+l} \sum_{h\pmod{k}^*}\omega_{h,k}^2\omega_{2h,k}^{-1}e^{\frac{2\pi i}{k}(hn+h'm)}. \end{align*} $$

Moreover, we define

$$ \begin{align*} \delta^{+}_{a,c,k,r}&=\frac{l^2}{2c_1^2}+\frac{1}{16}-\left(r+\frac{1}{2}\right)\frac{l}{c_1}, \\[5pt] \delta^{-}_{a,c,k,r}&=\frac{l^2}{2c_1^2}-\frac{15}{16}-r\left(1-\frac{l}{c_1}\right)+\frac{l}{2c_1}, \end{align*} $$

and

$$ \begin{align*} m^{+}_{a,k,c,r}&=-\frac{a^2k_1^2}{2c_1^2}+\frac{lak_1}{c_1^2}-\frac{l^2}{2c_1^2} +\frac{l}{2c_1}+\frac{lr}{c_1}-\frac{ak_1}{2c_1}-\frac{ark_1}{c_1}, \\[5pt] m^{-}_{a,k,c,r}&=-\frac{a^2k_1^2}{2c_1^2}+\frac{lak_1}{c_1^2}-\frac{l^2}{2c_1^2}+1+r -\frac{l}{2c_1}-\frac{lr}{c_1}+\frac{ak_1}{2c_1}+\frac{ark_1}{c_1}. \end{align*} $$

Let $\overline {M}(m,n)$ denote the number of overpartitions of n with the first residual crank equal to m. Bringmann, Lovejoy, and Osburn [Reference Bringmann, Lovejoy and Osburn7] obtained the generating function of $\overline {M}(m,n)$ , that is,

(1.1) $$ \begin{align} \overline{C}(x;q)=\sum_{n=0}^\infty\sum_{m=-\infty}^\infty \overline{M}(m,n)x^mq^n=\frac{(q,-q;q)_\infty}{(xq,x^{-1}q;q)_\infty}. \end{align} $$

In particular,

$$ \begin{align*} \overline{C}(1;q) =\sum_{n=0}^\infty\overline{p}(n)q^n. \end{align*} $$

If $0<a<c$ are coprime integers, c is odd and n is a positive integer, we define

$$ \begin{align*} \overline{C}\left(e^{\frac{2\pi ia}{c}};q\right) =1+\sum_{n=1}^\infty\overline{A}\left(\frac{a}{c};n\right)q^n. \end{align*} $$

Using the circle method, we obtain the following asymptotic formulas for the coefficient $\overline {A}\left (\frac {a}{c};n\right )$ .

Theorem 1.1 If $0<a<c$ are coprime integers, $c\geq 3$ is odd and n is a positive integer, then the following holds:

$$ \begin{align*} \overline{A}\left(\frac{a}{c};n\right) =&in^{-\frac{1}{2}} \sum_{\begin{subarray}{c} 1\leq k\leq \sqrt{n}\\ c|k,~2\nmid k \end{subarray}} \frac{\overline{B}_{a,c,k}(-n,0)}{\sqrt{k}}\sinh\left(\frac{\pi\sqrt{n}}{k}\right) \nonumber+2n^{-\frac{1}{2}}\sin\left(\frac{\pi a}{c}\right)\\[5pt] &\times\sum_{\begin{subarray}{c} 1\leq k\leq \sqrt{n}\\ c\nmid k,~2\nmid k\\ \delta_{a,c,k,r}^i>0\\ r\geq0,~i\in\{+,-\} \end{subarray}} \frac{\overline{D}_{a,c,k}(-n,m_{a,c,k,r}^i)}{\sqrt{k}} \sinh\left(\frac{4\pi}{k}\sqrt{n\delta_{a,c,k,r}^i}\right)+\overline{R}_c(n), \end{align*} $$

where

$$ \begin{align*} |\overline{R}_{c}(n)|\leq (1700009.4994c+7358.2224) n^{\frac 38}. \end{align*} $$

Employing Theorem 1.1, a straightforward analysis leads us to the ensuing corollary.

Corollary 1.2 Let $0\leq a<c$ with c an odd integer. For any positive integer n, we have

$$ \begin{align*} \overline{M}(a,c,n)&=\frac{1}{2c\pi}\sum_{k=1\atop 2\nmid k}^\infty\sqrt{k}\sum_{h=0\atop (h,k)=1}^k \frac{\omega_{h,k}^2}{\omega_{2h,k}}e^{-\frac{2\pi inh}{k}}\frac{d}{dn} \left(\frac{\sinh\frac{\pi\sqrt{n}}{k}}{\sqrt{n}}\right)+\frac{1}{c}\sum_{j=1}^{c-1}\zeta_c^{-aj}in^{-\frac{1}{2}} \\&\quad\times\sum_{\begin{subarray}{c} 1\leq k\leq \sqrt{n}\\ c'|k,~2\nmid k \end{subarray}} \frac{\overline{B}_{j',c',k}(-n,0)}{\sqrt{k}}\sinh\left(\frac{\pi\sqrt{n}}{k}\right)+\frac{1}{c}\sum_{j=1}^{c-1}\zeta_c^{-aj}2n^{-\frac{1}{2}}\sin\left(\frac{\pi j}{c}\right) \\&\quad\times\sum_{\begin{subarray}{c} 1\leq k\leq \sqrt{n}\\ c_j\nmid k,~2\nmid k\\ \delta_{j',c',k,r}^i>0\\ r\geq0,~i\in\{+,-\} \end{subarray}} \frac{\overline{D}_{j',c',k}(-n,m_{j',c',k,r}^i)}{\sqrt{k}} \sinh\left(\frac{4\pi}{k}\sqrt{n\delta_{j',c',k,r}^i}\right) +R_{c}(n), \end{align*} $$

where $c':=\frac {c}{(c,j)}$ , $j':=\frac {j}{(c,j)}$ and

(1.2) $$ \begin{align} |R_{c}(n)|\leq (1700009.4994c+7358.2224) n^{\frac 38}. \end{align} $$

Remark While the bounds on the error terms in Theorem 1.1 and Corollary 1.2 appear identical, they fundamentally differ. Consequently, we employ distinct notations to denote them.

Corollary 1.2 offers an asymptotic expression for $\overline {M}(a,c,n)$ along with an error term $O(n^\varepsilon )$ .

Theorem 1.3 Let $0\leq a<c$ with c an odd integer. Then we have

(1.3) $$ \begin{align} \frac{\overline{M}(a,c,n)}{\overline p(n)}=\frac 1c+\overline{R}(a,c,n), \end{align} $$

where

$$\begin{align*}|\overline{R}(a,c,n)|\leq \left\{ \begin{array}{ll} 10^5(464.45c+2.02)n^{\frac{11}{8}}e^{-\frac{2}{3}\pi\sqrt{n}}, & \mbox{if } c<9, \\[3pt] 10^5(464.45c+2.02)n^{\frac{11}{8}}e^{-\left(1-\sqrt{1-\frac 8{c}+\frac 8{c^2}}\right)\pi\sqrt{n}}, & \mbox{if } c\geq9. \end{array} \right. \end{align*}$$

Subsequently, we further refine this analysis by establishing an equality relationship between $\overline{M}(a,c,n)$ and $\overline p(n)$ . In addition, we provide explicit bounds for the associated error term.

As a direct application of Theorem 1.1, we further establish the inequality of crank differences.

Theorem 1.4 Suppose that $0\leq a<b\leq \frac {c-1}{2}$ and that $c\geq 9$ is an odd integer. For $n>\overline {N}_{a,b,c}$ , where $\overline {N}_{a,b,c}$ is an explicit constant, we have the inequality:

$$ \begin{align*} \overline{M}(a,c,n)>\overline{M}(b,c,n). \end{align*} $$

We employ Theorem 1.3 to demonstrate the positivity of $\overline {M}(a,c,n)$ .

Theorem 1.5 Let $0\leq a<c$ with c an odd integer. For $c\geq 9$ , define the constant

(1.4) $$ \begin{align} \overline{Q}_c:=\frac{c^{4}\left(2+\sqrt{4+\frac{16\pi}c\log\left(2\times10^5\times(464.45c^2 + 2.02c)\right)}\right)^4}{8^4\pi^4}. \end{align} $$

Then we have

$$ \begin{align*} \overline{M}(a,c,n)>0, \end{align*} $$

if $c<9$ and $n\geq 196$ , or if $c\geq 9$ and $n> \max\{840c, \overline {Q}_c\}$ .

Bessenrodt and Ono [Reference Bessenrodt and Ono4] were the first to discover the strict log-subadditivity property of the partition function $p(n)$ . Subsequently, numerous studies emerged investigating the strict log-subadditivity property of other partition functions. The final result of this paper is to demonstrate the strict log-subadditivity property of $\overline {M}(a,c,n)$ .

Theorem 1.6 Let $0\leq a<c$ with c an odd integer. We have

(1.5) $$ \begin{align} \overline{M}(a,c,n_1+n_2)<\overline{M}(a,c,n_1)\overline{M}(a,c,n_2), \end{align} $$

if $c<9$ and $n_1,n_2\geq 196$ , or if $c\geq 9$ and $n_1,n_2\geq \overline {Q}_c$ , where $\overline {Q}_c$ is defined in (1.4).

The paper is structured as follows. In Section 2, we introduce a transformation formula for $\overline {C}(x;q)$ . Section 3 is dedicated to breaking down the coefficient $\overline {A}\left (\frac {a}{c};n\right )$ into four terms and providing explicit expressions for the main terms and establishing bounds for the error terms within each component. This allows us to establish Theorem 1.1. Moving on to Section 4, we leverage Theorem 1.1 to prove Corollary 1.2 and Theorem 1.3. Finally, in Section 5, we apply the derived results to demonstrate various inequalities pertaining to the crank function, covering crank differences, positivity, and strict log-subadditivity.

2 A transformation law

In this section, we establish a transformation formula for the function $\overline {C}(x;q)$ , which plays an important role in the proof of the asymptotics of crank of overpartitions. First, we introduce the needed quantities to state the transformation rules. The Dedekind $\eta $ -function is defined as

(2.1) $$ \begin{align} \eta(\tau)=e^{\frac{\pi i \tau}{12}}\prod_{n=0}^\infty\left(1-e^{2\pi in\tau}\right), \end{align} $$

and the Jacobi $\vartheta $ -function is defined as

$$ \begin{align*} \vartheta(u;\tau) =\sum_{\nu\in\mathbb{Z}+\frac{1}{2}}e^{\pi i\nu^2\tau+2\pi i\nu\left(u+\frac{1}{2}\right)}. \end{align*} $$

For convenience, we let

$$ \begin{align*} \tau_1:=\frac{h+iz}{k},\qquad \tau_2:=\frac{h'+iz^{-1}}{k}, \end{align*} $$

and

$$ \begin{align*} \omega_1=:\frac{c}{a},\qquad \omega_2:=\frac{ah'}{c}, \qquad \omega_3:=-\omega_2+\frac{l}{c_1}\tau_2, \end{align*} $$

where $h,k$ are coprime integer with $h'$ like previous section. In principle, one can make any choice of $h'$ , but must carry that specific choice through all relevant calculations. To allow simplifications in various formulas and calculations, we make some assumptions about our choice of $h'$ . These assumptions deal only with fixed k and h and only appear in the proofs. When $2\nmid k$ , we assume that $h^{\prime }_2=\frac {h'}{2}$ . These are viewed as choices made for a fixed value of k and h, so such a choice is possible. Clearly such choices would be impossible for all k and h simultaneously.

For $z\in \mathbb {C}$ with $Re(z)>0$ , we have

(2.2) $$ \begin{align} \eta\left(\tau_1\right)=\sqrt{\frac{i}{z}}\chi(h,h',k)\eta\left(\tau_2\right), \end{align} $$

where we take the principal branch of the square root and

(2.3) $$ \begin{align} \chi(h,h',k)=i^{-\frac{1}{2}}\omega_{h,k}^{-1}e^{-\frac{\pi i}{12k}(h'-h)}. \end{align} $$

Moreover, $\eta $ is a modular form of weight $\frac {1}{2}$ with multiplier system.

Define $x=e^{2\pi i\omega }$ and $q=e^{2\pi i\tau }$ , where $\omega \in \mathbb {C}$ and $\tau \in \mathbb {H}$ . Then, $\vartheta $ satisfies the Jacobi triple product identity

(2.4) $$ \begin{align} \vartheta(\omega;\tau)=-2\sin(\pi\omega)q^{\frac{1}{8}}(q,xq,x^{-1}q;q)_\infty, \end{align} $$

and if $\mathrm {Re}(z)>0$ , then

(2.5) $$ \begin{align} \vartheta\left(\omega;\tau_1\right) =\chi^3(h,h',k)\sqrt{\frac{i}{z}}e^{-\frac{\pi k\omega^2}{z}} \vartheta\left(\frac{i\omega}{z};\tau_2\right)\!. \end{align} $$

Plugging (2.1) and (2.4) in (1.1), we obtain that

(2.6) $$ \begin{align} \overline{C}\left(x;q\right) =-2\sin(\pi \omega)\frac{\eta(\tau)\eta(2\tau)}{\vartheta(\omega;\tau)}. \end{align} $$

We are now ready to show the transformation law of $\overline {C}\left (e^{2\pi i\omega _1};e^{2\pi i\tau _1}\right )$ .

Proposition 2.1 Adopting the previously mentioned notation and further, let $w \in \mathbb {C}$ with $\operatorname {Re}(z)>0$ . Define $q:=e^{2\pi i\tau _1}=e^{\frac {2 \pi i}{k}(h+i z)}$ and $q_1:=e^{2\pi i\tau _2}=e^{\frac {2 \pi i}{k}\left (h^{\prime }+\frac {i}{z}\right )}$ .

(1) If $c|k$ and k is even, we have

(2.7) $$ \begin{align} \overline{C}\left(e^{2\pi i\omega_1};q\right) =\frac{i\sin\left(\pi \omega_1\right)}{z^{\frac{1}{2}}\sin\left(\pi\omega_2\right)} (-1)^{ak+1}\omega_{h,k}^2\omega_{h,\frac{k}{2}}^{-1}e^{-\frac{\pi ia^2k_1h'}{c}} \overline{C}\left(e^{2\pi i\omega_2};q_1\right)\!. \end{align} $$

(2) If $c|k$ and k is odd, we have

(2.8) $$ \begin{align} \overline{C}\left(e^{2\pi i\omega_1};q\right) =\frac{\sqrt{2}i\sin\left(\pi \omega_1\right)}{2z^{\frac{1}{2}}\sin\left(\pi \omega_2\right)} (-1)^{ak+1}\omega_{h,k}^2\omega_{2h,k}^{-1}e^{\frac{\pi ih'}{8k}-\frac{\pi ia^2k_1h'}{c}} \cdot\frac{\eta\left(\frac{\tau_2}{2}\right)} {\eta\left(2\tau_2\right)}\overline{C}\left(e^{2\pi i\omega_2};q_1\right)\!. \end{align} $$

(3) If $c\nmid k$ and k is even, we have

(2.9) $$ \begin{align} \overline{C}\left(e^{2\pi i\omega_1};q\right) &=4i\sin\left(\pi\omega_1\right)z^{-\frac{1}{2}}(-1)^{ak+l+1}\omega_{h,k}^2\omega_{h,\frac{k}{2}}^{-1} \nonumber\\ &\quad \cdot e^{\frac{2\pi ialh'}{cc_1}-\frac{\pi ia^2k_1h'}{cc_1}}q_1^{-\frac{l^2}{2c_1^2}} \overline{C}\left(ah',\frac{lc}{c_1},c;q_1\right)\!. \end{align} $$

(4) If $c\nmid k$ and k is odd, we have

(2.10) $$ \begin{align} \overline{C}\left(e^{2\pi i\omega_1};q\right) &=2\sqrt{2}i\sin\left(\pi \omega_1\right)z^{-\frac{1}{2}} (-1)^{ak+l+1}\omega_{h,k}^2\omega_{2h,k}^{-1}e^{\frac{\pi ih'}{8k}} \nonumber\\[5pt] &\quad \cdot q_1^{-\frac{l^2}{2c_1^2}}e^{\frac{2\pi ialh'}{cc_1}-\frac{\pi ia^2k_1h'}{cc_1}} \frac{\eta\left(\frac{\tau_2}{2}\right)} {\eta\left(2\tau_2\right)}\overline{C}\left(ah',\frac{lc}{c_1},c;q_1\right), \end{align} $$

where

$$ \begin{align*} \overline{C}(a,b,c;q)=\frac{i}{2}\frac{(-q;q)_\infty}{(q;q)_\infty} \sum_{m=-\infty}^\infty\frac{(-1)^me^{-\frac{\pi ia}{c}}q^{{m+1\choose2}+\frac{b}{2c}}} {1-e^{-\frac{2\pi ia}{c}q^{m+\frac{b}{c}}}}. \end{align*} $$

Proof Substituting $\omega $ and $\tau $ by $\omega _1$ and $\tau _1$ in (2.6), respectively, we find that

(2.11) $$ \begin{align} \overline{C}\left(e^{2\pi i\omega_1};e^{2\pi i\tau_1}\right) =-2\sin\left(\pi\omega_1\right)\eta\left(\tau_1\right)\eta\left(2\tau_1\right) \vartheta^{-1}\left(\omega_1;\tau_1\right). \end{align} $$

By plugging (2.5) and (2.3) into (2.11), we infer that

(2.12) $$ \begin{align} \overline{C}\left(e^{2\pi i\omega_1};e^{2\pi i\tau_1}\right) =-2iz^{\frac{1}{2}}\sin\left(\pi\omega_1\right)\omega^3_{h,k} e^{\frac{\pi i}{4k}(h'-h)+\frac{\pi ka^2}{zc^2}} \eta\left(\tau_1\right)\eta\left(2\tau_1\right) \vartheta^{-1}\left(\frac{i\omega_1}{z};\tau_2\right). \end{align} $$

For k is even, since $(h,k)=1$ , we have $\left (h,\frac {k}{2}\right )=1$ . From (2.2) it follows that

(2.13) $$ \begin{align} \eta\left(\tau_1\right)\eta\left(2\tau_1\right) =\sqrt{\frac{i}{z}}\chi(h,h',k)\eta\left(\tau_2\right) \sqrt{\frac{i}{z}}\chi\left(h,h',\frac{k}{2}\right)\eta\left(2\tau_2\right). \end{align} $$

Inserting (2.3) into (2.13), we arrive at

$$ \begin{align*} \eta\left(\tau_1\right)\eta\left(2\tau_1\right) =z^{-1}\omega_{h,k}^{-1}\omega^{-1}_{h,\frac{k}{2}}e^{-\frac{\pi i}{4k}(h'-h)} \eta\left(\tau_2\right)\eta\left(2\tau_2\right). \end{align*} $$

Thus for k is even, (2.12) equals to

(2.14) $$ \begin{align} &\overline{C}\left(e^{2\pi i\omega_1};e^{2\pi i\tau_1}\right) =-2iz^{-\frac{1}{2}}\sin\left(\pi\omega_1\right)\omega^2_{h,k}\omega^{-1}_{h,\frac{k}{2}} e^{\frac{\pi ka^2}{zc^2}} \frac{\eta\left(\tau_2\right)\eta\left(2\tau_2\right)} {\vartheta\left(\frac{i\omega_1}{z};\tau_2\right)}. \end{align} $$

We now assume that $c|k$ . It is obvious that $\frac {ak}{c}\in \mathbb {Z}$ . Rewriting $\eta \left (\tau _2\right )\eta \left (2\tau _2\right )$ by (2.6), we obtain

(2.15) $$ \begin{align} \overline{C}\left(e^{2\pi i\omega_1};e^{2\pi i\tau_1}\right) =iz^{-\frac{1}{2}}\frac{\sin\left(\pi \omega_1\right)}{\sin\left(\pi \omega_2\right)} \omega^2_{h,k}\omega^{-1}_{h,\frac{k}{2}}e^{\frac{\pi ka^2}{zc^2}} \overline{C}\left(e^{2\pi i\omega_2};e^{2\pi i\tau_2}\right) \frac{\vartheta\left(\omega_2;\tau_2\right)} {\vartheta\left(\frac{i\omega_1}{z};\tau_2\right)}. \end{align} $$

Recall the following identity in Rolon [Reference Zapata Rolon18]:

(2.16) $$ \begin{align} \frac{\vartheta\left(\omega_2;\tau_2\right)} {\vartheta\left(\frac{i\omega_1}{z};\tau_2\right)}=(-1)^{ak+1}e^{-\frac{\pi ia^2kh'}{c^2}-\frac{\pi a^2k}{zc^2}}. \end{align} $$

Then (2.15) becomes

$$ \begin{align*} \overline{C}\left(e^{2\pi i\omega_1};e^{2\pi i\tau_1}\right) =(-1)^{ak+1}iz^{-\frac{1}{2}}\frac{\sin\left(\pi \omega_1\right)}{\sin\left(\pi \omega_2\right)} \omega^2_{h,k}\omega^{-1}_{h,\frac{k}{2}}e^{-\frac{\pi ia^2kh'}{c^2}} \overline{C}\left(e^{2\pi i\omega_2};e^{2\pi i\tau_2}\right), \end{align*} $$

which coincides with (2.7).

The case $c\nmid k$ presents more complexity, as typically $\frac {ak}{c}\not \in \mathbb {Z}$ . Given that l was determined as the solution to the congruence $l\equiv ak_1\pmod {c_1}$ by definition, it follows that $B=\frac {l-ak_1}{c_1}\in \mathbb {Z}$ . This allows for the adjustment of the theta function in the elliptic variable by a factor of B times the modular variable, as defined previously.

Recall the following identity in Rolon [Reference Zapata Rolon18]:

(2.17) $$ \begin{align} \vartheta\left(\frac{i\omega_1}{z};\tau_2\right) =(-1)^{ak+l}e^{\frac{\pi i(l-ak_1)^2\tau_2}{c_1^2}+2\pi i\left(\frac{l-ak_1}{c_1}\right)\cdot\frac{i\omega_1}{z}} \vartheta\left(\omega_3;\tau_2\right). \end{align} $$

Combining with (2.14), we get

(2.18) $$ \begin{align} \overline{C}\left(e^{2\pi i\omega_1};e^{2\pi i\tau_1}\right) &=2(-1)^{ak+l+1}iz^{-\frac{1}{2}}\sin\left(\pi \omega_1\right) \omega^2_{h,k}\omega^{-1}_{h,\frac{k}{2}} \nonumber\\[6pt] &\qquad\times q_1^{-\frac{l^2}{2c_1}} e^{\frac{2\pi ialh'}{cc_1}-\frac{\pi ia^2h'k_1}{cc_1}} \frac{\eta\left(\tau_2\right)\eta\left(2\tau_2\right)} {\vartheta\left(\omega_3;\tau_2\right)} \nonumber\\[6pt] &=(-1)^{ak+l}iz^{-\frac{1}{2}} \sin\left(\pi \omega_1\right)\omega^2_{h,k}\omega^{-1}_{h,\frac{k}{2}} \nonumber\\[6pt] &\qquad\times q_1^{-\frac{l^2}{2c_1}} e^{\frac{2\pi ialh'}{cc_1}-\frac{\pi ia^2h'k_1}{cc_1}} \frac{\overline{C}\left(e^{2\pi i\omega_3};q_1\right)}{\sin\left(\pi \omega_3\right)}. \end{align} $$

We define $x=e^{2\pi i\omega _3}$ , and use the exponential representation of the sine to deduce

(2.19) $$ \begin{align} \frac{\overline{C}\left(e^{2\pi i\omega_3};q_1\right)}{\sin\left(\pi \omega_3\right)} &=\frac{2i(1-x)}{x^{\frac{1}{2}}-x^{-\frac{1}{2}}}\cdot\frac{(-q_1;q_1)_\infty}{(q_1;q_1)_\infty} \sum_{m=-\infty}^\infty\frac{(-1)^mq_1^{m+1\choose2}}{1-xq_1^m} \nonumber\\[5pt] &=-\frac{2ix^{\frac{1}{2}}(-q_1;q_1)_\infty}{(q_1;q_1)_\infty} \sum_{m=-\infty}^\infty\frac{(-1)^mq_1^{m+1\choose2}}{1-xq_1^m}\nonumber\\[5pt] &=-4\overline{C}\left(ah',\frac{lc}{c_1},c;q_1\right). \end{align} $$

Thus, (2.9) can be given by inserting this expression into (2.18).

For k is odd, then we have $(2h,k)=1$ , by (2.2),

$$ \begin{align*} \eta\left(\tau_1\right)\eta\left(2\tau_1\right) =\sqrt{\frac{i}{z}}\chi(h,h',k)\eta\left(\tau_2\right) \sqrt{\frac{i}{2z}}\chi\left(2h,\frac{h'}2,k\right)\eta\left(\frac{\tau_2}{2}\right). \end{align*} $$

Using (2.3), we infer that

$$ \begin{align*} \eta\left(\tau_1\right)\eta\left(2\tau_1\right) =\frac{\sqrt2}{2}z^{-1}\omega_{h,k}^{-1}\omega^{-1}_{2h,k}e^{-\frac{\pi i}{4k}\left(\frac{h'}{2}-h\right)} \eta\left(\tau_2\right)\eta\left(\frac{\tau_2}{2}\right). \end{align*} $$

Thus for k is odd, (2.12) equals to

(2.20) $$ \begin{align} \overline{C}\left(e^{2\pi i\omega_1};e^{2\pi i\tau_1}\right) =-\sqrt{2}iz^{-\frac{1}{2}}\sin\left(\pi\omega_1\right)\omega^2_{h,k}\omega^{-1}_{2h,k} e^{\frac{\pi ih'}{8k}+\frac{\pi ka^2}{zc^2}} \frac{\eta\left(\tau_2\right)\eta\left(\frac{\tau_2}{2}\right)} {\vartheta\left(\frac{i\omega_1}{z};\tau_2\right)}. \end{align} $$

Similarly, we consider the cases $c|k$ and $c\nmid k$ . For $c|k$ , we have $\frac {ak}{c}$ is an integer, and we obtain

(2.21) $$ \begin{align} \overline{C}\left(e^{2\pi i\omega_1};e^{2\pi i\tau_1}\right) & =i(2z)^{-\frac{1}{2}}\frac{\sin\left(\pi \omega_1\right)}{\sin\left(\pi \omega_2\right)}\omega^2_{h,k}\omega^{-1}_{2h,k} e^{\frac{\pi ih'}{8k}+\frac{\pi ka^2}{zc^2}} \frac{\eta\left(\frac{\tau_2}{2}\right)}{\eta\left(2\tau_2\right)} \nonumber \\ &\quad \cdot \frac{\vartheta\left(\omega_2;\tau_2\right)} {\vartheta\left(\frac{i\omega_1}{z};\tau_2\right)} \overline{C}\left(e^{2\pi i\omega_2};q_1\right). \end{align} $$

Utilizing (2.16), (2.21) can be rewritten as

$$ \begin{align*} \overline{C}\left(e^{2\pi i\omega_1};e^{2\pi i\tau_1}\right) &=(-1)^{ak+1}i(2z)^{-\frac{1}{2}}\frac{\sin\left(\pi \omega_1\right)}{\sin\left(\pi \omega_2\right)}\omega^2_{h,k}\omega^{-1}_{2h,k} e^{\frac{\pi ih'}{8k}-\frac{\pi ia^2k_1h'}{c}} \nonumber \\ &\quad \cdot\frac{\eta\left(\frac{\tau_2}{2}\right)} {\eta\left(2\tau_2\right)} \overline{C}\left(e^{2\pi i\omega_2};q_1\right), \end{align*} $$

which yields (2.8).

It remains to prove (2.10). Combining (2.17) and (2.19) with (2.20), we see that

$$ \begin{align*} \overline{C}\left(e^{2\pi i\omega_1};e^{2\pi i\tau_1}\right) &=\sqrt{2}(-1)^{ak+l+1}iz^{-\frac{1}{2}}\sin\left(\pi\omega_1\right) \omega^2_{h,k}\omega^{-1}_{2h,k}q_1^{-\frac{l^2}{2c_1}} e^{\frac{\pi ih'}{8k}+\frac{2\pi ialh'}{cc_1}-\frac{\pi ia^2h'k_1}{cc_1}} \nonumber\\[5pt] &\quad\cdot\frac{\eta\left(\tau_2\right)\eta\left(\frac{\tau_2}{2}\right)} {\vartheta\left(\omega_3;\tau_2\right)} \nonumber\\[5pt] &=(-1)^{ak+l}i(2z)^{-\frac{1}{2}} \sin\left(\pi\omega_1\right)\omega^2_{h,k}\omega^{-1}_{2h,k}q_1^{-\frac{l^2}{2c_1}} e^{\frac{\pi ih'}{8k}+\frac{2\pi ialh'}{cc_1}-\frac{\pi ia^2h'k_1}{cc_1}} \nonumber\\[5pt] &\quad\cdot \frac{\eta\left(\frac{\tau_2}{2}\right)}{\eta\left(2\tau_2\right)} \frac{\overline{C}\left(e^{2\pi i\omega_3};q_1\right)}{\sin\left(\pi\omega_3\right)} \nonumber\\[5pt] &=4(-1)^{ak+l+1}i(2z)^{-\frac{1}{2}} \sin\left(\pi \omega_1\right)\omega^2_{h,k}\omega^{-1}_{2h,k}q_1^{-\frac{l^2}{2c_1}} e^{\frac{\pi ih'}{8k}+\frac{2\pi ialh'}{cc_1}-\frac{\pi ia^2h'k_1}{cc_1}} \nonumber\\[5pt] &\quad\cdot \frac{\eta\left(\frac{\tau_2}{2}\right)}{\eta\left(2\tau_2\right)} \overline{C}\left(ah',\frac{lc}{c_1},c;q_1\right). \end{align*} $$

This completes the proof.

3 Asymptotics for $\overline {A}\left (\frac {a}{c};n\right )$

In this section, we establish the asymptotic formula for $\overline {A}\left (\frac {a}{c};n\right )$ by decomposing it into the sum of $\Sigma _1$ , $\Sigma _2$ , $\Sigma _3$ , and $\Sigma _4$ , and then assessing the error and principal terms for each component. Key to our analysis are the following lemmas.

Lemma 3.1 Let $n,m,k,D\in \mathbb {Z}$ with $(D,k)=1$ , $0\leq \sigma _1<\sigma _2\leq k.$ Then there are constants $\tilde {C}_1$ and $\tilde {C}_2$ , which are independent of a and k, such that:

(1) We have

(3.1) $$ \begin{align} \left|\sum_{h\pmod{k}^*\atop \sigma_1\leq Dh'\leq\sigma_2} \omega_{h,k}^2\omega_{h,\frac{k}{2}}^{-1}e^{\frac{2\pi i}{k}(hn+h'm)} \right|\leq \tilde{C}_1\cdot\gcd(24n+1,k)^{\frac{1}{2}}k^{\frac{1}{2}+\varepsilon}. \end{align} $$

(2) We have

(3.2) $$ \begin{align} \left|\frac{\sin\frac{\pi a}{c}}{(-1)^{ak+1}} \sum_{h\pmod{k}^*\atop \sigma_1\leq Dh'\leq\sigma_2}\frac{\omega_{h,k}^2\omega_{h,\frac{k}{2}}^{-1}}{\sin\left(\frac{\pi ah'}{c}\right)}e^{-\frac{\pi ia^2k_1h'}{c}}e^{\frac{2\pi i}{k}(hn+h'm)} \right|\leq \tilde{C}_2\cdot\gcd(24n+1,k)^{\frac{1}{2}}k^{\frac{1}{2}+\varepsilon}. \end{align} $$

Proof The proof of equation 3.1 is essentially established in [Reference Andrews1], with only a slight modification required. Part two is a direct consequence of part one and the proof of Lemma 3.2 in [Reference Bringmann5].

Lemma 3.2 Define the integral $I_{k,t}$ as follows:

(3.3) $$ \begin{align} I_{k,t}=\int_{-\frac{1}{kN}}^{\frac{1}{kN}}z^{-\frac{1}{2}}e^{\frac{2\pi }{k}\left(zn+\frac{t}{z}\right)}\mathrm{d}\Phi. \end{align} $$

We then evaluate this integral to obtain:

(3.4) $$ \begin{align} I_{k,t}=\sqrt{\frac{2}{kn}}\sinh\left(\frac{4\pi \sqrt{nt}}{k}\right)+I_{k,t}^{err}, \end{align} $$

where the error term $I_{k,t}^{err}$ is given by

(3.5) $$ \begin{align} I_{k,t}^{err}\leq \frac 2k e^{2\pi+2\pi t}\left(\frac 43+2^{\frac 54}\right)n^{-\frac 18}. \end{align} $$

Proof Substituting $z=\frac {k}{n}-ik\Phi $ into (3.3) gives

(3.6) $$ \begin{align} I_{k,t}=\frac{1}{ki}\int_{\frac{k}{n}-\frac{i}{N}}^{\frac{k}{n}+\frac{i}{N}}z^{-\frac{1}{2}} e^{\frac{2\pi }{k}\left(zn+\frac{t}{z}\right)}\mathrm{d}z. \end{align} $$

We now define $\Gamma $ as the circle passing through $\frac {k}{n}\pm \frac {i}{N}$ and tangent to the imaginary axis at $0$ . For $z=x+iy$ , $\Gamma $ is characterized by $x^2+y^2=\alpha x$ , where $\alpha =\frac {k}{n}+\frac {n}{N^2k}$ . Considering that $2>\alpha >\frac {1}{k}$ , $\mathrm {Re}(z)\leq \frac {k}{n}$ and $\mathrm {Re}\left (\frac {1}{z}\right )< k$ on the smaller arc, similar to the argument of Rolon [Reference Zapata Rolon18, Eq. (4.6)], we get that the integral over the smaller arc is:

$$ \begin{align*} I_{k,t}^{err}\leq \frac 2k e^{2\pi+2\pi t}\left(\frac 43+2^{\frac 54}\right)n^{-\frac 18}. \end{align*} $$

Furthermore, Cauchy’s theorem allows us to modify the path of integration in (3.6) to follow the larger arc of $\Gamma $ . Transforming the circle to a straight line by $s=\frac {2\pi t}{kz}$ gives:

$$\begin{align*}\frac{1}{ki}\int_{\Gamma}z^{-\frac{1}{2}} e^{\frac{2\pi }{k}\left(zn+\frac{t}{z}\right)}\mathrm{d}z=\frac{2\pi}{k}\left(\frac{2\pi t}{k}\right)^{\frac{1}{2}}\frac{1}{2\pi i} \int_{\gamma-i\infty}^{\gamma+i\infty} s^{-\frac{3}{2}}e^{s+\frac{\beta}{s}}\mathrm{d}s,\end{align*}$$

where $\gamma \in \mathbb {R}$ and $\beta =\frac {4\pi ^2 tn}{k^2}$ . Using the Hankel integral formula in [Reference Watson19], we compute

$$ \begin{align*} \frac{1}{2 \pi i} \int_{\gamma-i \infty}^{\gamma+i \infty} t^{-\frac{3}{2}} \cdot e^{t+\frac{\alpha}{t}} \mathrm{d} t=\frac{1}{\sqrt{\pi \alpha}} \cdot \sinh (2 \sqrt{\alpha}). \end{align*} $$

We thus get (3.4). This completes the proof.

Lemma 3.3 If $0<a<c$ are coprime integers, $c\geq 3$ is odd and n is a positive integer, then

(3.7) $$ \begin{align} \overline{A}\left(\frac{a}{c};n\right) &=i\sin\left(\frac{\pi a}{c}\right)\sum_{h}\sum_{c|k\atop 2|k} \frac{(-1)^{ak+1}}{\sin\left(\frac{\pi ah'}{c}\right)} \omega_{h,k}^2\omega_{h,\frac{k}{2}}^{-1}e^{-\frac{2\pi ihn}{k}-\frac{\pi ia^2k_1h'}{c}} \nonumber\\[5pt] &\quad\quad\cdot\int_{-\vartheta^{\prime}_{h,k}}^{\vartheta^{\prime\prime}_{h,k}}z^{-\frac{1}{2}}e^{\frac{2\pi nz}{k}} \overline{C}\left(e^{\frac{2\pi iah'}{c}};q_1\right)\mathrm{d}\Phi \nonumber\\[5pt] &\quad+\frac{\sqrt{2}}{2}i\sin\left(\frac{\pi a}{c}\right)\sum_{h}\sum_{c|k\atop 2\nmid k} \frac{(-1)^{ak+1}}{\sin\left(\frac{\pi ah'}{c}\right)} \omega_{h,k}^2\omega_{2h,k}^{-1}e^{-\frac{2\pi ihn}{k}+\frac{\pi ih'}{8k}-\frac{\pi ia^2k_1h'}{c}} \nonumber\\[5pt] &\quad\quad\quad \cdot\int_{-\vartheta^{\prime}_{h,k}}^{\vartheta^{\prime\prime}_{h,k}} z^{-\frac{1}{2}}e^{\frac{2\pi nz}{k}}\frac{\eta\left(\frac{h'+iz^{-1}}{2k}\right)} {\eta\left(\frac{2(h'+iz^{-1})}{k}\right)}\overline{C}\left(e^{\frac{2\pi iah'}{c}};q_1\right)\mathrm{d}\Phi \nonumber\\[5pt] &\quad+4i\sin\left(\frac{\pi a}{c}\right)\sum_{h}\sum_{c\nmid k\atop 2|k} (-1)^{ak+l+1}\omega_{h,k}^2\omega_{h,\frac{k}{2}}^{-1}e^{-\frac{2\pi ihn}{k}+\frac{2\pi ialh'}{cc_1}-\frac{\pi ia^2k_1h'}{cc_1}} \nonumber\\[5pt] &\quad\quad\quad \cdot\int_{-\vartheta^{\prime}_{h,k}}^{\vartheta^{\prime\prime}_{h,k}} z^{-\frac{1}{2}}e^{\frac{2\pi nz}{k}} q_1^{-\frac{l^2}{2c_1^2}}\overline{C}\left(ah',\frac{lc}{c_1},c;q_1\right)\mathrm{d}\Phi \nonumber\\[5pt] &\quad+2\sqrt{2}i\sin\left(\frac{\pi a}{c}\right)\sum_{h}\sum_{c\nmid k\atop 2\nmid k} (-1)^{ak+l+1}\omega_{h,k}^2\omega_{2h,k}^{-1}e^{-\frac{2\pi ihn}{k}+\frac{\pi ih'}{8k}+\frac{2\pi ialh'}{cc_1}-\frac{\pi ia^2k_1h'}{cc_1}} \nonumber\\[5pt] &\quad\quad\quad \cdot\int_{-\vartheta^{\prime}_{h,k}}^{\vartheta^{\prime\prime}_{h,k}}z^{-\frac{1}{2}}e^{\frac{2\pi nz}{k}} q_1^{-\frac{l^2}{2c_1^2}}\frac{\eta\left(\frac{h'+iz^{-1}}{2k}\right)} {\eta\left(\frac{2(h'+iz^{-1})}{k}\right)} \overline{C}\left(ah',\frac{lc}{c_1},c;q_1\right)\mathrm{d}\Phi \nonumber\\[5pt] &:=\Sigma_1+\Sigma_2+\Sigma_3+\Sigma_4. \end{align} $$

Proof By Cauchy’s theorem we have for $n>0$

$$\begin{align*}\overline{A}\left(\frac{a}{c};n\right)=\frac{1}{2\pi i}\int_{\mathcal{C}}\frac{\overline{C}\left(e^{\frac{2\pi ia}{c}};q\right)}{q^{n+1}}\mathrm{d}q,\end{align*}$$

where $\mathcal {C}$ denotes any path within the unit circle that encircles the origin in a counterclockwise direction. Opting for a circular path of radius $e^{-\frac {2\pi }{n}}$ and parameterizing it as $q=e^{-\frac {2\pi }{n}+2\pi it}$ for $0\leq t\leq 1$ yields

$$\begin{align*}\overline{A}\left(\frac{a}{c};n\right)=\int_0^1\overline{C}\left(e^{\frac{2\pi ia}{c}};e^{-\frac{2\pi}{n}+2\pi it}\right)e^{2\pi-2\pi int}\mathrm{d}t.\end{align*}$$

We define

$$\begin{align*}\vartheta^{\prime}_{h,k}=\frac{1}{k\left(\widetilde{k}_1+k\right)},~~~~~ \vartheta^{\prime\prime}_{h,k}=\frac{1}{k\left(\widetilde{k}_2+k\right)},\end{align*}$$

where $\frac {h_1}{\widetilde {k}_1}<\frac {h}{k}<\frac {h_2}{\widetilde {k}_2}$ are adjacent Farey fractions in the Farey sequence of order $N=\lfloor n^{1/2}\rfloor $ . We know that

$$\begin{align*}\frac{1}{k+\widetilde{k}_j}\leq\frac{1}{N+1}~~~~(j=1,2).\end{align*}$$

Now we decompose the path of integration along Farey arcs $-\vartheta ^{\prime }_{h,k}\leq \Phi \leq \vartheta ^{\prime \prime }_{h,k}$ , where $\Phi =t-\frac {h}{k}$ and $0\leq h<k\leq N$ with $(h,k)=1$ . From this decomposition of the path we can rewrite the integral along these arcs:

$$\begin{align*}\overline{A}\left(\frac{a}{c};n\right)=\sum_{h,k}e^{-\frac{2\pi ihn}{k}} \int_{-\vartheta^{\prime}_{h,k}}^{\vartheta^{\prime\prime}_{h,k}}\overline{C}\left(e^{\frac{2\pi ia}{c}};e^{\frac{2\pi i}{k}(h+iz)}\right)e^{\frac{2\pi nz}{k}}\mathrm{d}\Phi,\end{align*}$$

where $z=\frac {k}{n}-k\Phi i$ . We incorporate our transformation formula into the integral and conclude the proof.

By utilizing the estimates for the sums $\Sigma _1$ , $\Sigma _2$ , $\Sigma _3$ , and $\Sigma _4$ , we substantiate the proof of Theorem 1.1, wherein $\Sigma _1$ and $\Sigma _3$ correspond to the error terms, while $\Sigma _2$ and $\Sigma _4$ pertain to the main terms. Subsequently, we will provide an in-depth analysis, presenting detailed calculations for the main terms as well as establishing bounds for the error terms.

For convenience, we define

(3.8) $$ \begin{align} \epsilon_1:=\sum_{r=1}^\infty\overline{p}(r)e^{-\pi r},\quad\epsilon_2:=\sum_{m\geq0}\frac {e^{-\pi m(m+1)/2}}{1-e^{-\pi m-\frac{\pi }{c}}}, \quad \epsilon_3:=\sum_{m\geq1}\frac {e^{-\pi m(m+1)/2}}{1-e^{-\pi m+\pi\left(1-\frac{1}{c}\right)}}, \end{align} $$

where c is an odd integer.

Lemma 3.4 $\Sigma _1$ contributes to an error term, with its definition provided in (3.7). Moreover, the bound for $\Sigma _1$ is as follows:

$$ \begin{align*} |\Sigma_1|\leq \frac{8\left|\sin\left(\frac{\pi a}{c}\right)\right|e^{2\pi}(1+\epsilon_1)\left(1+\log\left(\frac{c-1}2\right)\right)n^{\frac 14}}{c\pi \left(1-\pi^2/24\right)}. \end{align*} $$

Proof We note that

$$ \begin{align*} \overline{C}\left(e^{\frac{2\pi iah'}{c}};q_1\right) &=1+\sum_{r=1}^\infty\sum_{m=-\infty}^\infty\overline{M}(m,r)e^{\frac{2\pi iah'm}{c}}q_1^r \\[5pt] &=1+\sum_{r=1}^\infty\sum_{s~(\mathrm{mod}~{c})}\sum_{t=-\infty}^\infty\overline{M}(s+tc,r)e^{\frac{2\pi iah's}{c}}q_1^r. \end{align*} $$

Let

$$\begin{align*}\overline{a}(r,s)=\sum_{t=-\infty}^\infty\overline{M}(s+tc,r),\end{align*}$$

then we have

(3.9) $$ \begin{align} \overline{C}\left(e^{\frac{2\pi iah'}{c}};q_1\right) =1+\sum_{r=1}^\infty\sum_{s~(\mathrm{mod}~{c})}\overline{a}(r,s)e^{\frac{2\pi ih'}{c}m_{r,s}}q_1^r, \end{align} $$

where $m_{r,s}$ takes values in $\mathbb {Z}$ . Consequently, $\Sigma _1$ can be expressed as follows:

$$ \begin{align*} \Sigma_1=\widehat{S}_1+\widehat{S}_2, \end{align*} $$

where

(3.10) $$ \begin{align} \widehat{S}_1&=i\sin\left(\frac{\pi a}{c}\right)\sum_{h}\sum_{c|k\atop 2|k} \frac{(-1)^{ak+1}}{\sin\left(\frac{\pi ah'}{c}\right)} \omega_{h,k}^2\omega_{h,\frac{k}{2}}^{-1}e^{-\frac{2\pi ihn}{k}-\frac{\pi ia^2k_1h'}{c}} \int_{-\vartheta^{\prime}_{h,k}}^{\vartheta^{\prime\prime}_{h,k}}z^{-\frac{1}{2}}e^{\frac{2\pi nz}{k}}\mathrm{d}\Phi, \end{align} $$
(3.11) $$ \begin{align} \widehat{S}_2&=i\sin\left(\frac{\pi a}{c}\right)\sum_{h}\sum_{c|k\atop 2|k} \frac{(-1)^{ak+1}}{\sin\left(\frac{\pi ah'}{c}\right)} \omega_{h,k}^2\omega_{h,\frac{k}{2}}^{-1}e^{-\frac{2\pi ihn}{k}-\frac{\pi ia^2k_1h'}{c}} \nonumber\\ &\quad\quad\quad \cdot\int_{-\vartheta^{\prime}_{h,k}}^{\vartheta^{\prime\prime}_{h,k}}z^{-\frac{1}{2}}e^{\frac{2\pi nz}{k}} \sum_{r=1}^\infty\sum_{s\pmod{c}}\overline{a}(r,s)e^{\frac{2\pi ih'}{c}m_{r,s}}q_1^r\mathrm{d}\Phi, \end{align} $$

We first consider $\widehat {S}_1$ . Splitting the integration path into

(3.12) $$ \begin{align} \int_{-\vartheta^{\prime}_{h,k}}^{\vartheta^{\prime\prime}_{h,k}}=\int_{-\frac{1}{kN}}^{\frac{1}{kN}} -\int_{-\frac{1}{kN}}^{-\frac{1}{k(\widetilde{k}_1+k)}} -\int_{\frac{1}{k(\widetilde{k}_2+k)}}^{\frac{1}{kN}}, \end{align} $$

and denoting the associated sums by $\widehat {S}_{11},\widehat {S}_{12}$ , and $\widehat {S}_{13}$ , then one can demonstrate that $\widehat {S}_{1i}$ $(i=1,2,3)$ contributes to the error term. Specifically, for $\widehat {S}_{11}$ , we find

$$ \begin{align*} \left|\widehat{S}_{11}\right|&\leq\sum_{c|k\atop 2|k} \int_{-\frac{1}{kN}}^{\frac{1}{kN}} \left|z^{-\frac{1}{2}}e^{\frac{2\pi nz}{k}}\right|d\Phi \cdot\left|\frac{\sin\left(\frac{\pi a}{c}\right)}{(-1)^{ak+1}} \sum_{h\atop\ell\leq\widetilde{k}_1+k-1\leq N+k-1} \frac{\omega_{h,k}^2\omega_{h,\frac{k}{2}}^{-1}}{\sin\left(\frac{\pi ah'}{c}\right)} e^{-\frac{2\pi ihn}{k}-\frac{\pi ia^2k_1h'}{c}}\right|. \end{align*} $$

According to (3.2) and the facts that

(3.13) $$ \begin{align} \mathrm{Re}(z)=\frac{k}{n},\qquad |z|^{-\frac{1}{2}}\leq k^{-\frac{1}{2}}n^{\frac{1}{2}}, \end{align} $$

we deduce that

$$ \begin{align*} \left|\widehat{S}_{11}\right|&\leq C\sum_{c|k\atop 2|k}\gcd(24n+1,k)^{\frac{1}{2}}k^{\frac{1}{2}+\varepsilon} k^{-\frac{1}{2}}n^{\frac{1}{2}}e^{2\pi} \int_{-\frac{1}{kN}}^{\frac{1}{kN}}\mathrm{d}\Phi \\[3pt] &\leq C_1\sum_{k}\gcd(24n+1,k)^{\frac{1}{2}}k^{-1+\varepsilon} \leq C_2\sum_{k\leq N}k^{-1+\varepsilon}\sum_{d|k\atop d|24n+1}d^{\frac{1}{2}} \\[3pt] &\leq C_2\sum_{d|24n+1\atop d\leq N}d^{\frac{1}{2}}\sum_{k\leq N/d}(kd)^{-1+\varepsilon} \leq C_2\sum_{d|24n+1\atop d\leq N}d^{-\frac{1}{2}}\sum_{k\leq N/d}k^{-1}N^{\varepsilon} \\[3pt] &\leq C_3n^{\varepsilon}\sum_{d|24n+1\atop d\leq N}d^{-\frac{1}{2}} \leq C_4n^{\varepsilon}, \end{align*} $$

where $C_1, C_2, C_3$ and $C_4$ are constants.

Turning our attention to $\widehat {S}_{12}$ , the integral within this term can be reformulated as:

$$\begin{align*}\int_{-\frac{1}{kN}}^{-\frac{1}{k(\widetilde{k}_1+k)}} =\sum_{\ell=N}^{\widetilde{k}_1+k-1}\int_{-\frac{1}{k\ell}}^{-\frac{1}{k(\ell+1)}}.\end{align*}$$

Plugging into $\widehat {S}_{12}$ gives:

$$ \begin{align*} \widehat{S}_{12}=\sum_{c|k\atop 2|k} \sum_{\ell=N}^{\widetilde{k}_1+k-1}\int_{-\frac{1}{k\ell}}^{-\frac{1}{k(\ell+1)}} z^{-\frac{1}{2}}e^{\frac{2\pi nz}{k}}\mathrm{d}\Phi \frac{i\sin\left(\frac{\pi a}{c}\right)}{(-1)^{ak+1}}\sum_{h} \frac{\omega_{h,k}^2\omega_{h,\frac{k}{2}}^{-1}}{\sin\left(\frac{\pi ah'}{c}\right)} e^{-\frac{2\pi ihn}{k}-\frac{\pi ia^2k_1h'}{c}}. \end{align*} $$

Given the constraint $\widetilde {k}_1\leq N$ , it follows that $\ell \leq \widetilde {k}_1+k-1\leq N+k-1$ , thereby limiting the range of summation over h. Consequently, we can estimate $\widehat {S}_{12}$ by summing over more integrals:

$$ \begin{align*} \left|\widehat{S}_{12}\right|&\leq\sum_{c|k\atop 2|k} \sum_{\ell=N}^{N+k-1}\int_{-\frac{1}{k\ell}}^{-\frac{1}{k(\ell+1)}} \left|z^{-\frac{1}{2}}e^{\frac{2\pi nz}{k}}\right|\mathrm{d}\Phi \\[3pt] &\quad \cdot\left|\frac{\sin\left(\frac{\pi a}{c}\right)}{(-1)^{ak+1}} \sum_{h\atop\ell\leq\widetilde{k}_1+k-1\leq N+k-1} \frac{\omega_{h,k}^2\omega_{h,\frac{k}{2}}^{-1}}{\sin\left(\frac{\pi ah'}{c}\right)} e^{-\frac{2\pi ihn}{k}-\frac{\pi ia^2k_1h'}{c}}\right|. \end{align*} $$

Now by the theory of Farey fractions we have

$$\begin{align*}\widetilde{k}_1\equiv-h'\pmod{k},~~~\widetilde{k}_2\equiv h'\pmod{k},~~N-k<\widetilde{k}_i\leq N,\end{align*}$$

for $i=1,2$ . This means the restriction of $h'$ to one or two intervals in the range $0\leq h' < k$ . Similar to $\widehat {S}_{11}$ , using (3.2) and (3.13), we get $\widehat {S}_{12}= O(n^\varepsilon )$ . The shape of $\widehat {S}_{13}$ is the same as that of $\widehat {S}_{12}$ . Hence, representing the expression as

$$\begin{align*}\int_{\frac{1}{k(\widetilde{k}_2+k)}}^{\frac{1}{kN}}=\sum_{\ell=k+\widetilde{k}_2-1}^{N} \int_{\frac{1}{k(\ell+1)}}^{\frac{1}{k\ell}}\end{align*}$$

yields $\widehat {S}_{13}= O(n^\varepsilon )$ by the same argument.

Following this, our analysis shifts to $\widehat {S}_{2}$ . Analogously, the integral within $\widehat {S}_{2}$ can be expressed as

(3.14) $$ \begin{align} \int_{-\vartheta^{\prime}_{h,k}}^{\vartheta^{\prime\prime}_{h,k}} =\int_{-\frac{1}{k(N+k)}}^{\frac{1}{k(N+k)}}+\int_{\frac{1}{k(N+k)}}^{\frac{1}{k(\widetilde{k}_2+k)}} +\int_{-\frac{1}{k(\widetilde{k}_1+k)}}^{-\frac{1}{k(N+k)}}, \end{align} $$

and we denote the associated sums by $\widehat {S}_{21},\widehat {S}_{22}$ and $\widehat {S}_{23}$ . Then taking the absolute value of this it is possible to bound the term. Before doing that we define

$$\begin{align*}\overline{a}(r)=\sum_{s\pmod c}\left|\overline{a}(r,s)\right|,\end{align*}$$

where $\overline {a}(r)$ are exactly $\overline {p}(n)$ except from some constant term ambiguity. Using (3.2) and (3.13) again, we have

$$ \begin{align*} \left|\widehat{S}_{21}\right| &\leq \sum_{r=1}^\infty\sum_{c|k\atop 2|k}\overline{a}(r) \left|(-1)^{ak+1}\sin\left(\frac{\pi a}{c}\right)\sum_{h}\frac{\omega_{h,k}^2\omega_{h,\frac{k}{2}}^{-1}}{\sin\left(\frac{\pi ah'}{c}\right)} e^{-\frac{2\pi ihn}{k}-\frac{\pi ia^2k_1h'}{c}+\frac{2\pi ih'}{c}m_{r,s}}\right| \nonumber\\[5pt] &\quad \cdot k^{-\frac{1}{2}}n^{\frac{1}{2}}e^{2\pi-\pi r} \int_{-\frac{1}{k(N+k)}}^{\frac{1}{k(N+k)}}\mathrm{d}\Phi \nonumber\\[5pt] &=O(n^\varepsilon). \end{align*} $$

Since $\widehat {S}_{22}$ and $\widehat {S}_{23}$ are treated in exactly the same way as $\widehat {S}_{12}$ , by writting

$$ \begin{align*} \int_{\frac{1}{k(N+k)}}^{\frac{1}{k(\widetilde{k}_2+k)}}=\sum_{\ell=N+k-1}^{\widetilde{k}_2+k}\int_{\frac{1}{k(\ell+1)}} ^{\frac{1}{k\ell}},\qquad\qquad \int_{-\frac{1}{k(\widetilde{k}_1+k)}}^{-\frac{1}{k(N+k)}}=\sum_{\ell=k+\widetilde{k}_1}^{N+k-1}\int_{-\frac{1}{k\ell}}^{-\frac{1}{k(\ell+1)}}, \end{align*} $$

and repeating the steps of the estimation of $\widehat {S}_{12}$ , we derive that both $\widehat {S}_{22}$ and $\widehat {S}_{23}$ are of order $O(n^\varepsilon )$ . In conclusion, we have

(3.15) $$ \begin{align} \Sigma_1=O(n^\varepsilon). \end{align} $$

For the bounds of $\Sigma _1$ , using (3.13) and $\vartheta _{h,k}'+\vartheta" _{h,k}\leq \frac 2{k\sqrt {n}}$ , we have

$$ \begin{align*} |\Sigma_1|&\leq 2\bigg|\sin\left(\frac{\pi a}{c}\right)\bigg|e^{2\pi}\sum_{k\leq N\atop c|k}k^{-\frac 32}\sum_{h=1\atop (h,k)=1}^{k}\frac 1 {\left|\sin\left(\frac{\pi h}{c}\right)\right|} \max_z \left|\overline{C}\left(e^{\frac{2\pi ih}{c}};q_1\right)\right|. \end{align*} $$

Here we use a change of variables $ah'\rightarrow h$ . Applying (3.9) and $\mathrm {Re}\left (\frac 1z\right )>\frac k2$ , we have

$$ \begin{align*} \left|\overline{C}\left(e^{\frac{2\pi ih}{c}};q_1\right)\right| &\leq 1+\sum_{r=1}^\infty\overline{p}(r)e^{-\pi r}. \end{align*} $$

Recall the estimate in [Reference Ciolan10, Section 4.2]:

(3.16) $$ \begin{align} \sum_{\begin{subarray}{c} h=1\\ (h,k)=1 \end{subarray}}^k \frac 1{\left|\sin\left(\frac{\pi h}{c}\right)\right|} \leq \frac {2k\left(1+\log\left(\frac {c-1}2\right)\right)}{\pi(1-\pi^2/24)}. \end{align} $$

Using these inequalities above and setting $\epsilon _1=\sum _{r=1}^\infty \overline {p}(r)e^{-\pi r}$ , we can derive that

$$ \begin{align*} |\Sigma_1|&\leq 2\left|\sin\left(\frac{\pi a}{c}\right)\right|e^{2\pi}(1+\epsilon_1)\sum_{k\leq N\atop c|k}k^{-\frac 32}\sum_{h=1\atop (h,k)=1}^{k}\frac 1 {\left|\sin\left(\frac{\pi h}{c}\right)\right|} \notag\\[6pt] &\leq \frac{4\left|\sin\left(\frac{\pi a}{c}\right)\right|e^{2\pi}(1+\epsilon_1)\left(1+\log\left(\frac{c-1}2\right)\right)}{\pi \left(1-\pi^2/24\right)}\sum_{k\leq N\atop c|k}k^{-\frac 12} \notag\\[6pt] &\leq \frac{8\left|\sin\left(\frac{\pi a}{c}\right)\right|e^{2\pi}(1+\epsilon_1)\left(1+\log\left(\frac{c-1}2\right)\right)n^{\frac 14}}{c\pi \left(1-\pi^2/24\right)}. \end{align*} $$

This completes the proof.

In the above proof of $\Sigma _1$ , we detailed how to identify the error terms and compute their bounds. In the subsequent proof of $\Sigma _4$ , we will focus on determining the main term and calculating the bounds of the error terms, while omitting the process of identifying these error terms.

Lemma 3.5 $\Sigma _4$ contributes a main term, defined as in (3.7), which can be specifically expressed as follows:

(3.17) $$ \begin{align} \Sigma_4=2n^{-\frac{1}{2}}\sin\left(\frac{\pi a}{c}\right) \sum_{\begin{subarray}{c} 1\leq k\leq \sqrt{n}\\ c\nmid k,~2\nmid k\\ \delta_{a,c,k,r}^i>0\\ r\geq0,~i\in\{+,-\} \end{subarray}} \frac{\overline{D}_{a,c,k}(-n,m_{a,c,k,r}^i)}{\sqrt{k}} \sinh\left(\frac{4\pi}{k}\sqrt{n\delta_{a,c,k,r}^i}\right)+O(n^{\varepsilon}). \end{align} $$

Moreover, the error terms coming from $\Sigma _4$ can be bounded by

$$ \begin{align*} 8\sqrt{2}e^{2\pi}n^{\frac 14}f(c)+16\sqrt{2}e^{2\pi}\frac {e^{2\pi \delta_0}}{1-e^{-\frac{2\pi}c}}n^{\frac 14}+4\sqrt{2}\left(\frac{4}{3}+2^{\frac{5}{4}}\right) \frac{e^{2\pi\delta_0+2\pi}}{1-e^{-\frac{2\pi}{c}}}n^{\frac{3}{8}}, \end{align*} $$

where

$$ \begin{align*} f(c):=\frac {1+\epsilon_1e^{\pi\delta_0}}{\left(1-e^{-\frac{\pi }{c}}\right)}+ e^{\pi \delta_0}(1+\epsilon_1)\epsilon_2+ e^{\pi \delta_0+\pi}(1+\epsilon_1)\epsilon_3\quad\text{with}\quad \delta_0:=\frac 1{2c^2}-\frac 1{2c}+\frac 1{16}. \end{align*} $$

Proof Note that

(3.18) $$ \begin{align} \overline{C}\left(ah',\frac{lc}{c_1},c;q_1\right) &=\frac{i}{2}\frac{(-q_1;q_1)_\infty}{(q_1;q_1)_\infty} \nonumber \\ &\quad \times \left(\sum_{m=0}^\infty\frac{(-1)^me^{-\frac{\pi iah'}{c}}q_1^{{m+1\choose2}+\frac{l}{2c_1}}} {1-e^{-\frac{2\pi iah'}{c}q_1^{m+\frac{l}{c_1}}}}\right. \left.-\sum_{m=1}^\infty\frac{(-1)^me^{\frac{\pi iah'}{c}}q_1^{{m+1\choose2}-\frac{l}{2c_1}}} {1-e^{\frac{2\pi iah'}{c}q_1^{m-\frac{l}{c_1}}}}\right) \notag \\[5pt] &=\frac{i}{2}\frac{(-q_1;q_1)_\infty}{(q_1;q_1)_\infty} \left(\sum_{m=0}^\infty(-1)^m\sum_{r=0}^\infty e^{-\frac{\pi iah'}{c}-\frac{2\pi irah'}{c}} q_1^{{m+1\choose2}+\frac{l}{2c_1}+rm+\frac{rl}{c_1}}\right. \notag \\[5pt] &\quad -\left.\sum_{m=1}^\infty(-1)^m\sum_{r=0}^\infty e^{\frac{\pi iah'}{c}+\frac{2\pi irah'}{c}} q_1^{{m+1\choose2}-\frac{l}{2c_1}+rm-\frac{rl}{c_1}}\right). \end{align} $$

Then the product in $\Sigma _4$ can be written as

(3.19) $$ \begin{align} &e^{\frac{\pi ih'}{8k}+\frac{2\pi ialh'}{cc_1}-\frac{\pi ia^2k_1h'}{cc_1}} q_1^{-\frac{l^2}{2c_1^2}}\frac{\eta\left(\frac{h'+iz^{-1}}{2k}\right)} {\eta\left(\frac{2(h'+iz^{-1})}{k}\right)}\overline{C}\left(ah',\frac{lc}{c_1},c;q_1\right) \nonumber\\[5pt] &\quad =\sum_{r=r^{\prime}_0}^\infty\sum_{s\pmod{c}}\overline{d}(r,s)e^{\frac{2\pi im^{\prime}_{r,s}h'}{k}}q_1^r. \end{align} $$

We aim to demonstrate that $m^{\prime }_{r,s}\in \mathbb {Z}$ and $r^{\prime }_0$ may be negative. The segments involving negative r contribute to the component. Considering $\tau _2=\frac {h'+iz^{-1}}{k}$ , $q_1=e^{2\pi i\tau _2}$ , we further elaborate (3.19) by employing

(3.20) $$ \begin{align} \frac{\eta\left(\frac{\tau_2}{2}\right)}{\eta(2\tau_2)} \frac{(-q_1;q_1)_\infty}{(q_1;q_1)_\infty} =q_1^{-\frac{1}{16}}\frac{(q_1^{\frac{1}{2}};q_1^{\frac{1}{2}})_\infty}{(q_1;q_1)^2_\infty} =q_1^{-\frac{1}{16}}\left(1+O\left(q_1^{\frac{1}{2}}\right)\right) \end{align} $$

inside of $\eta \left (\frac {h'+iz^{-1}}{2k}\right )\eta ^{-1}\left (\frac {2(h'+iz^{-1})}{k}\right ) \overline {C}\left (ah',\frac {lc}{c_1},c;q_1\right )$ . So, the main contribution of

$$ \begin{align*} e^{\frac{\pi ih'}{8k}+\frac{2\pi ialh'}{cc_1}-\frac{\pi ia^2k_1h'}{cc_1}} q_1^{-\frac{l^2}{2c_1^2}}\frac{\eta\left(\frac{h'+i(z)^{-1}}{2k}\right)} {\eta\left(\frac{2(h'+iz^{-1})}{k}\right)}\overline{C}\left(ah',\frac{lc}{c_1},c;q_1\right) \end{align*} $$

comes from the following expression:

(3.21) $$ \begin{align} \pm\frac{i}{2}e^{\frac{2\pi ialh'}{cc_1}-\frac{\pi ia^2k_1h'}{cc_1}+\frac{\pi ih'}{8k}} q_1^{-\frac{l^2}{2c_1^2}-\frac{1}{16}} (-1)^mq_1^{\frac{m}{2}(m+1)\pm\frac{l}{2c_1}+rm\pm\frac{rl}{c_1}} e^{\mp\frac{\pi iah'}{c}\mp\frac{2\pi iah'r}{c}}. \end{align} $$

From this is possible to split the expression into the roots of unity and to the part that depends on the variable z. The roots of unity look like:

$$\begin{align*}\exp\left(\frac{2\pi ih'}{k}\left(-\frac{a^2k_1k}{2cc_1}+\frac{lak}{cc_1} -\frac{l^2}{2c_1^2}+rm\pm\frac{rl}{c_1}\mp\frac{kra}{c} +\frac{m(m+1)}{2}\pm\frac{l}{2c_1}\mp\frac{ak}{2c}\right)\right).\end{align*}$$

Rewriting the expression in the second bracket, using the congruence condition $l\equiv ak_1\pmod {c_1}$ , $l^2+l$ is always even and rearranging the sum it is possible to show that the contribution of the roots of unity looks like $\exp \left (\frac {2\pi ih'm^{\prime }_{r,s}}{k}\right )$ where $m^{\prime }_{r,s}$ is a sequence in $\mathbb {Z}$ . The interesting part happens for $\exp \left (\frac {\pi }{kz}H_2\right )$ , where $H_2$ is defined in the following way:

$$\begin{align*}H_2=\frac{l^2}{c_1^2}+\frac{1}{8}-2rm\mp2r\frac{l}{c_1}-m(m+1)\mp\frac{l}{c_1}.\end{align*}$$

This part contributes to the circle method exactly if $H_2>0$ . A straightforward, but rather tedious computation shows that there are two contributions coming from each of the two terms of

$$ \begin{align*}\eta\left(\frac{h'+iz^{-1}}{2k}\right)\eta^{-1}\left(\frac{2(h'+iz^{-1})}{k}\right) \overline{C}\left(ah',\frac{lc}{c_1},c;q_1\right).\end{align*} $$

The first one comes from the first sum, if $m=0$ , and this contributes with

$$ \begin{align*} \frac{i}{2}e^{\frac{2\pi ialh'}{cc_1}-\frac{\pi ia^2k_1h'}{cc_1}-\frac{\pi iah'}{c}+\frac{\pi ih'}{8k}} q_1^{-\frac{l^2}{2c_1^2}-\frac{1}{16}+\frac{l}{2c_1}} \sum_{r\geq0\atop\delta^+_{a,c,k,r}>0}q_1^{\frac{rl}{c_1}} e^{-\frac{2\pi iah'r}{c}}, \end{align*} $$

where $\delta ^{+}_{a,c,k,r}=\frac {l^2}{2c_1^2}+\frac {1}{16}-\left (r+\frac {1}{2}\right )\frac {l}{c_1}$ . The second contribution comes from the second sum, if $m=1$ , and this contributes with

$$ \begin{align*} \frac{i}{2}e^{\frac{2\pi ialh'}{cc_1}-\frac{\pi ia^2k_1h'}{cc_1}+\frac{\pi ih'}{8k}} q_1^{-\frac{l^2}{2c_1^2}-\frac{1}{16}} q_1^{1-\frac{l}{2c_1}+r-\frac{rl}{c_1}} e^{\frac{\pi iah'}{c}+\frac{2\pi iah'r}{c}}, \end{align*} $$

where $\delta ^{-}_{a,c,k,r}=\frac {l^2}{2c_1^2}-\frac {15}{16}-r\left (1-\frac {l}{c_1}\right )+\frac {l}{2c_1}$ . Thus, $\Sigma _4$ can be rewritten as

(3.22) $$ \begin{align} \Sigma_4&=\sqrt{2}\sin\left(\frac{\pi a}{c}\right)\sum_{c\nmid k,~2\nmid k\atop r\geq0,~i\in\{-,+\}} (-1)^{ak+l}\sum_{h}\omega_{h,k}^2\omega_{2h,k}^{-1} e^{\frac{2\pi i}{k}(-nh+m^i_{a,c,k,r}h')} \nonumber\\[5pt] &\quad \cdot\int_{-\vartheta^{\prime}_{h,k}}^{\vartheta^{\prime\prime}_{h,k}}z^{-\frac{1}{2}}e^{\frac{2\pi nz}{k}+\frac{2\pi}{kz}\delta_{a,c,k,r}^i}\mathrm{d}\Phi. \end{align} $$

Now it is possible to rewrite the sum over k into the sum where the k’s have the same values for $c_1$ and l and thus the $\delta _{a,c,k,r}^i$ are constant in each class and the condition $\delta _{a,c,k,r}^i>0$ is independent of k in each class. Moreover it is clear that there are only finitely many solution to the inequality $\delta _{a,c,k,r}^i>0$ . This means it is possible to split the sum over r into positive and negative $\delta _{a,c,k,r}^i$ , where the part with positive $\delta _{a,c,k,r}^i$ contributes to the main term. Therefore, using (3.1) it is possible to evaluate $\Sigma _4$ by the same argument as for $\Sigma _1$ :

(3.23) $$ \begin{align} \Sigma_4&=\sqrt{2}\sin\left(\frac{\pi a}{c}\right)\sum_{r\geq0}\sum_{2\nmid k\atop c\nmid k}\sum_{\delta_{a,c,k,r}^i>0\atop i\in\{+,-\}}(-1)^{ak+l}\sum_{h\pmod{k}^*}\omega_{h,k}^2\omega_{2h,k}^{-1} e^{\frac{2\pi i}{k}\left(-nh+m_{a,c,k,r}^ih'\right)} \notag\\[5pt] &\quad\quad\quad \cdot\int_{-\frac{1}{kN}}^{\frac{1}{kN}} z^{-\frac{1}{2}}e^{\frac{2\pi zn}{k}+\frac{2\pi}{kz}\delta_{a,c,k,r}^i}\mathrm{d}\Phi+O(n^{\varepsilon}). \end{align} $$

Then substituting (3.4) into (3.23), we obtain (3.17).

Now we give a specific bound for the error coming from $\Sigma _4$ , which is composed of three parts. Firstly, we consider the error corresponding to the terms where $\delta _{a,c,k,r}^i$ is not positive, denoting it by $S_4^{err}$ . Define $\overline {M}(jh',l,c; q_1)$ to be the terms with positive exponents in the $q_1$ -expansion of

$$ \begin{align*} q_1^{-\frac{l^2}{2c_1^2}} \frac{\eta\left(\frac{\tau_2}2\right)}{\eta\left(2\tau_2\right)}\overline{C}\left(jh',\frac{lc}{c_1},c;q_1\right)\!, \end{align*} $$

where $\tau _2=\frac {h'+iz^{-1}}{k}$ . Then using the usual change of variable $ah'\rightarrow h$ , we find

$$ \begin{align*} |S_4^{err}|\leq 4\sqrt{2}\left|\sin\left(\frac{\pi a}{c}\right)\right|e^{2\pi}\sum_{h, k\atop c\nmid k}k^{-\frac 32} \max_z \left|\overline{M}(h,\frac{lc}{c_1},c; q_1)\right|. \end{align*} $$

By (3.18) and (3.20), we have

$$ \begin{align*} &\frac{\eta\left(\frac{\tau_2}2\right)}{\eta\left(2\tau_2\right)} \overline{C}\left(h,\frac{lc}{c_1},c;q_1\right) \\[5pt] &\quad=\frac{i}{2}q_1^{-\frac{1}{16}}\frac{(q_1^{\frac 12};q_1^{\frac 12})_\infty}{(q_1;q_1)_\infty^2} \left(\sum_{r\geq0} e^{-\frac{\pi ih}{c}-\frac{2\pi irh}{c}} q_1^{\frac{l}{2c_1}+\frac{rl}{c_1}}+\sum_{r\geq0}e^{\frac{\pi ih}{c}+\frac{2\pi irh}{c}} q_1^{-\frac{l}{2c_1}-\frac{rl}{c_1}+r+1}\right. \\[5pt] &\qquad +\left.\sum_{m\geq1}\frac{(-1)^m e^{-\frac{\pi ih}{c}}q_1^{\frac{m^2+m}{2}+\frac{l}{2c_1}}}{1-e^{-\frac{2\pi ih}{c}}q_1^{m+\frac l{c_1}}}-\sum_{m\geq2}\frac{(-1)^m e^{\frac{\pi ih}{c}}q_1^{\frac{m^2+m}{2}-\frac{l}{2c_1}}}{1-e^{\frac{2\pi ih}{c}}q_1^{m-\frac l{c_1}}}\right). \end{align*} $$

We bound the contributions of $\overline {M}$ term by term beginning with the first one. We find that

$$ \begin{align*} \left|\frac{(q_1^{1/2};q_1^{1/2})_\infty}{(q_1;q_1)_\infty^2}\right| =\left|\frac{(q_1^{1/2};q_1)_\infty}{(q_1;q_1)_\infty}\right|\leq \frac{2(-|q_1|;|q_1|)_\infty}{(|q_1|;|q_1|)_\infty} =\sum_{m\geq0}2\overline{p}(m)|q_1|^m. \end{align*} $$

Then we gain the following contribution to $\overline {M}$

$$ \begin{align*} & \left|q_1^{-\frac{1}{16}-\frac{l^2}{2c_1^2}+\frac{l}{2c_1}} \sum_{m=0}^{\infty}\overline{p}(m)|q_1|^m\sum_{r\geq r_0}q_1^{\frac{rl}{c_1}}\right| \\ & \quad\leq e^{\frac{\pi}{16}+\frac{\pi l^2}{2c_1^2}-\frac{\pi l}{2c_1}}\left( \sum_{r\geq r_0}e^{-\frac{\pi rl}{c_1}}+ \sum_{r\geq 0}e^{-\frac{\pi rl}{c_1}}\sum_{m\geq1}\overline{p}(m)e^{-\pi m}\right), \end{align*} $$

where $r_0:=\lceil \frac {l}{2c_1}+\frac {c_1}{16l}-\frac 12\rceil $ and $r\geq r_0$ is a solution of $\delta _{a,c,k,r}^+<0$ . Using

$$ \begin{align*} \sum_{r\geq r_0}e^{-\frac{\pi rl}{c_1}}=\frac{e^{-\frac{\pi r_0l}{c_1}}}{1-e^{-\frac{\pi l}{c_1}}}, \end{align*} $$

and the usual geometric series we can bound the term further by

$$ \begin{align*} \frac {e^{\frac{\pi}{16}+\frac{\pi l^2}{2c_1^2}-\frac{\pi l}{2c_1}-\frac{\pi r_0l}{c_1}}}{\left(1-e^{-\frac{\pi l}{c_1}}\right)}+\frac {e^{\frac{\pi}{16}+\frac{\pi l^2}{2c_1^2}-\frac{\pi l}{2c_1}}\epsilon_1}{\left(1-e^{-\frac{\pi l}{c_1}}\right)} =\frac{e^{\frac{\pi l}{c_1}\left(\frac{c_1}{16l}+\frac{l}{2c_1}-\frac 12-r_0\right)}\left(1+\epsilon_1e^{\frac{\pi r_0l}{c_1}}\right)}{\left(1-e^{-\frac{\pi l}{c_1}}\right)} \leq \frac {1+\epsilon_1e^{\pi\delta_0}}{\left(1-e^{-\frac{\pi }{c}}\right)}. \end{align*} $$

For $0<l<c_1$ , one can easily verify that $\delta _{j,c,k,r}^{i}<\delta _{j,c,k,0}^{+}=\frac 12(\frac l{c_1}-\frac 12)^2-\frac 1{16}$ . Assuming $\frac {l}{c_1}<\frac {1}{2}$ , which we may do by the symmetry of the parabola in the argument $\frac l{c_1}$ , we see that $\delta _{j,c,k,0}^{+}$ arrives the maximum value $\delta =\frac 1{2{c_1}^2}-\frac 1{2c_1}+\frac 1{16}$ at $l=1$ . Since $\delta \leq \delta _0$ , we have $\delta _{j,c,k,r}^{i}\leq \delta _0$ . Therefore, we can bound the second term by the same way. In the third and fourth summand all the terms will contribute to the error as shown in Theorem 1.1. We obtain

$$ \begin{align*} & \left|\frac{i}{2}q_1^{-\frac{1}{16}-\frac{l^2}{2c_1^2}+\frac{l}{2c_1}}\frac{(q_1^{\frac 12};q_1^{\frac 12})_\infty}{(q_1;q_1)_\infty^2}\sum_{m=1}^\infty\frac{(-1)^m e^{-\frac{\pi ih}{c}}q_1^{\frac{m^2+m}{2}}}{1-e^{-\frac{2\pi ih}{c}}q_1^{m+\frac l{c_1}}}\right| \\ &\quad \leq e^{\frac{\pi}{16}+\frac{\pi l^2}{2c_1^2}-\frac{\pi l}{2c_1}}(1+\epsilon_1)\sum_{m=1}^\infty \frac{e^{-\frac{\pi m(m+1)}{2}}}{1-e^{-\pi m-\frac{\pi l}{c_1}}}\\ &\quad \leq e^{\pi \delta_0}(1+\epsilon_1)\epsilon_2. \end{align*} $$

Proceeding by repeating this step for the fourth sum in the expansion of $\frac {\eta \left (\frac {\tau _2}2\right )}{\eta \left (2\tau _2\right )}\overline {C}\left (h,\frac {lc}{c_1},c;q_1\right )$ , we can get a bound for $\overline {M}$

$$ \begin{align*} e^{\pi \delta_0+\pi}(1+\epsilon_1)\epsilon_3. \end{align*} $$

Based on the above estimates, we find that $\overline {M}$ can be bounded by the function $f(c)$ that just depends on c. Therefore the error can be bounded by

(3.24) $$ \begin{align} |S_4^{err}|\leq 4\sqrt{2}e^{2\pi}\sum_{h, k\atop c\nmid k}k^{-\frac 32}f(c)\leq 8\sqrt{2}e^{2\pi}n^{\frac 14}f(c). \end{align} $$

Here it used that the sum over h can be bounded trivially by k because the sum runs over the residue class modulo k and we estimated the sum over k by an integral expression.

As a next step we want to bound the second part error that comes from symmetrizing the integral, which is the associated sums of the last two integrals in (3.12), that is

$$ \begin{align*} \tilde{S}_{4}^{err}&:=-\sqrt{2}\sin\left(\frac{\pi a}{c}\right)\sum_{c\nmid k,~2\nmid k\atop r\geq0,~i\in\{-,+\}} (-1)^{ak+l}\sum_{h}\omega_{h,k}^2\omega_{2h,k}^{-1} e^{\frac{2\pi i}{k}(-nh+m^i_{a,c,k,r}h')} \nonumber\\[5pt] &\quad\quad\quad \cdot\left(\int_{-\frac{1}{kN}}^{-\frac{1}{k(\widetilde{k}_1+k)}}+\int_{\frac{1}{k(\widetilde{k}_2+k)}}^{\frac{1}{kN}}\right) z^{-\frac{1}{2}}e^{\frac{2\pi nz}{k}+\frac{2\pi}{kz}\delta_{a,c,k,r}^i}d\Phi. \end{align*} $$

Completely analogous to $\Sigma _1$ , it is possible to show

$$ \begin{align*} |\tilde{S}_{4}^{err}|&\leq4\sqrt{2}e^{2\pi}\sum_{\begin{subarray}{c} r, k\\ \delta_{a,c,k,r}^i>0\\ ~i\in\{+,-\} \end{subarray}} k^{-\frac 12}e^{2\pi\delta_{a,c,k,r}^i} \end{align*} $$

As we can bound the term with $i=-$ and $i=+$ in a same way, we restrict to the case $i=+$ . The sum over r gives

(3.25) $$ \begin{align} |\tilde{S}_{4}^{err}|&\leq 8\sqrt{2}e^{2\pi}\sum_{r, k\atop\delta_{j,c,k,r}^+>0}k^{-\frac 12}e^{2\pi\delta_{j,c,k,r}^+} \notag\\ \quad &=8\sqrt{2}e^{2\pi}\sum_k k^{-\frac 12}\sum_{r\leq r_0-1}e^{\frac {\pi l^2}{c_1^2}+\frac {\pi}{8}-\frac {2\pi rl}{c_1}-\frac {\pi l}{c_1}} \notag\\ \quad &=8\sqrt{2}e^{2\pi}\sum_k k^{-\frac 12}\frac{e^{\frac {\pi l^2}{c_1^2}+\frac {\pi}{8}-\frac {\pi l}{c_1}} \left(e^{-\frac{2\pi l r_0}{c_1}}-1\right)}{e^{-\frac{2\pi l}{c_1}}-1} \notag\\ \quad &\leq8\sqrt{2}e^{2\pi}\sum_k k^{-\frac 12}\frac {e^{2\pi \delta_0}}{1-e^{-\frac{2\pi}c}} \notag\\ \quad &\leq16\sqrt{2}e^{2\pi}\frac {e^{2\pi \delta_0}}{1-e^{-\frac{2\pi}c}}n^{\frac 14}. \end{align} $$

Here we have used that the summation over r is an error term if it starts with $r_0$ , so here we have to sum over all the r-terms where $r\leq r_0-1$ .

The last error we have to bound comes from the evaluation of the integral. There it is used that it is possible to change the path of integration if one accounts the integral over the smaller arc. This term has to be made explicit. Applying (3.5), and estimation of the sum over k, we bound the third part error by

(3.26) $$ \begin{align} 4\sqrt{2}\left(\frac 43+2^{\frac 54}\right)\frac {e^{2\pi \delta_0+2\pi}}{1-e^{-\frac{2\pi}c}}n^{\frac 38}. \end{align} $$

Summing up (3.24), (3.25), and (3.26), we obtain the bound of the error coming from $\Sigma _4$ . This completes the proof.

In the computation of $\Sigma _2$ , which also contributes a main term, the calculation process differs slightly from that of $\Sigma _4$ . Therefore, we will detail the differences and omit the similar parts in the calculations.

Lemma 3.6 $\Sigma _2$ gives rise to the main term, as defined in (3.7), which can be expressed specifically as follows:

(3.27) $$ \begin{align} \Sigma_2&=in^{-\frac{1}{2}}\sin\left(\frac{\pi a}{c}\right)\sum_{h}\sum_{c|k\atop 2\nmid k} \frac{(-1)^{ak+1}}{\sin\left(\frac{\pi ah'}{c}\right)} \omega_{h,k}^2\omega_{2h,k}^{-1}e^{-\frac{2\pi ihn}{k}-\frac{\pi ia^2k_1h'}{c}} k^{-\frac{1}{2}}\sinh\left(\frac{\pi\sqrt{n}}{k}\right)\nonumber\\ &\quad +O(n^{\varepsilon}), \end{align} $$

where the error term $O(n^{\varepsilon })$ coming from $\Sigma _2$ can be bounded by

(3.28) $$ \begin{align} &\frac{4\sqrt{2}\left|\sin\left(\frac{\pi a}{c}\right)\right|e^{2\pi+\frac{\pi}8}(3\epsilon_1+2\epsilon_1^2)\left(1+\log\left(\frac{c-1}2\right)\right)n^{\frac 14}}{c\pi \left(1-\pi^2/24\right)}+\frac{8\sqrt{2}e^{2\pi+\frac{\pi}{8}}\left(1+\log\left(\frac{c-1}2\right)\right)n^{\frac 14}}{c\pi(1-\pi^2/24)} \notag\\ &\quad\quad\quad\quad\quad\quad+\frac{2\sqrt{2}e^{2\pi+\frac{\pi}{8}}\left(1+\log\left(\frac{c-1}2\right)\right)\left(\frac 43+2^{\frac 54}\right)n^{\frac 38}}{\pi(1-\pi^2/24)}. \end{align} $$

Proof Using (3.9), we obtain

$$ \begin{align*} \frac{\eta\left(\frac{\tau_2}{2}\right)} {\eta(2\tau_2)}\overline{C}\left(e^{\frac{2\pi iah'}{c}};q_1\right) &=\frac{q_1^{\frac{1}{48}}(q_1^{\frac{1}{2}};q_1^{\frac{1}{2}})_\infty} {q_1^{\frac{1}{12}}(q_1^2;q_1^2)_\infty} \left(1+\sum_{r=1}^\infty\sum_{s~(\mathrm{mod}~{c})}\overline{a}(r,s)e^{\frac{2\pi ih'}{c}m_{r,s}}q_1^r\right) \\[5pt] &=q_1^{-\frac{1}{16}}(1+\widehat{T}_1), \end{align*} $$

where $\tau _2=\frac {h'+iz^{-1}}{k}$ , $q_1=e^{2\pi i\tau _2}$ and

(3.29) $$ \begin{align} \widehat{T}_1=\frac{(q_1^{\frac{1}{2}};q_1^{\frac{1}{2}})_\infty}{(q_1^2;q_1^2)_\infty} \left(1+\sum_{r=1}^\infty\sum_{s~(\mathrm{mod}~{c})}\overline{a}(r,s)e^{\frac{2\pi ih'}{c}m_{r,s}}q_1^r\right)-1. \end{align} $$

Setting $\frac {(q_1^{1/2};q_1^{1/2})_\infty }{(q_1^2;q_1^2)_\infty }:=1+\sum _{n=1}^\infty b(n)q_1^{n/2}$ in (3.29), we obtain that

(3.30) $$ \begin{align} \widehat{T_1}&=\left(1+\sum_{n=1}^\infty b(n)q_1^{n/2}\right)\left(1+\sum_{r=1}^\infty\sum_{s~(\mathrm{mod}~{c})}^\infty \overline{a}(r,s)e^{\frac{2\pi ih'}{c}m(r,s)}q_1^r\right)-1\nonumber \notag\\[5pt] &=\sum_{n=1}^\infty b(n)q_1^{n/2}+\sum_{r=1}^\infty\sum_{s~(\mathrm{mod}~{c})}^\infty \overline{a}(r,s)e^{\frac{2\pi ih'}{c}m(r,s)}q_1^r\nonumber \notag\\[5pt] &\mbox{}\quad+\left(\sum_{n=1}^\infty b(n)q_1^{n/2}\right)\!\cdot\left(\sum_{r=1}^\infty\sum_{s\pmod{c}}^\infty \overline{a}(r,s)e^{\frac{2\pi ih'}{c}m(r,s)}q_1^r\right)\!. \end{align} $$

Consequently, $\Sigma _2$ can be expressed as follows:

$$ \begin{align*} \Sigma_2=\widetilde{S}_1+\widetilde{S}_2, \end{align*} $$

where

(3.31) $$ \begin{align} \widetilde{S}_1&=\frac{\sqrt{2}}{2}i\sin\left(\frac{\pi a}{c}\right)\sum_{h}\sum_{c|k\atop 2\nmid k} \frac{(-1)^{ak+1}}{\sin\left(\frac{\pi ah'}{c}\right)} \omega_{h,k}^2\omega_{2h,k}^{-1}e^{-\frac{2\pi ihn}{k}+\frac{\pi ih'}{8k}-\frac{\pi ia^2k_1h'}{c}} \nonumber\\[5pt] &\quad\quad\quad \cdot\int_{-\vartheta^{\prime}_{h,k}}^{\vartheta^{\prime\prime}_{h,k}} z^{-\frac{1}{2}}e^{\frac{2\pi nz}{k}}q_1^{-\frac{1}{16}}\mathrm{d}\Phi, \nonumber\\[5pt] \widetilde{S}_2&=\frac{\sqrt{2}}{2}i\sin\left(\frac{\pi a}{c}\right)\sum_{h}\sum_{c|k\atop 2\nmid k} \frac{(-1)^{ak+1}}{\sin\left(\frac{\pi ah'}{c}\right)} \omega_{h,k}^2\omega_{2h,k}^{-1}e^{-\frac{2\pi ihn}{k}+\frac{\pi ih'}{8k}-\frac{\pi ia^2k_1h'}{c}} \nonumber\\[5pt] &\quad\quad\quad \cdot\int_{-\vartheta^{\prime}_{h,k}}^{\vartheta^{\prime\prime}_{h,k}} z^{-\frac{1}{2}}e^{\frac{2\pi nz}{k}}q_1^{-\frac{1}{16}}\widehat{T}_1\mathrm{d}\Phi. \end{align} $$

Using (3.2), it is possible to demonstrate that $\widetilde {S}_1$ contributes to the main term and $\widetilde {S}_2=O(n^\varepsilon )$ , that is

$$ \begin{align*} \Sigma_2&=\frac{\sqrt{2}}{2}i\sin\left(\frac{\pi a}{c}\right)\sum_{h}\sum_{c|k\atop 2\nmid k} \frac{(-1)^{ak+1}}{\sin\left(\frac{\pi ah'}{c}\right)} \omega_{h,k}^2\omega_{2h,k}^{-1}e^{-\frac{2\pi ihn}{k}-\frac{\pi ia^2k_1h'}{c}} \nonumber\\[5pt] &\quad\quad\quad \cdot \int_{-\frac{1}{kN}}^{\frac{1}{kN}} z^{-\frac{1}{2}}e^{\frac{2\pi nz}{k}+\frac{\pi}{8kz}}\mathrm{d}\Phi +O(n^\varepsilon). \end{align*} $$

Then by (3.4), we obtain (3.27).

We next estimate the error coming from $\widetilde {S}_1$ , which consists of two parts: the error arises from integrating over the remaining parts of the interval and the error coming from integrating along a smaller arc. Using (3.5), (3.16) and $k\leq \sqrt {n}$ , we can bound the error coming from integrating along a smaller arc:

(3.32) $$ \begin{align} \widetilde{S}_{11}^{err}\leq\frac{2\sqrt{2}e^{2\pi+\frac{\pi}{8}}\left(1+\log\left(\frac{c-1}2\right)\right) \left(\frac 43+2^{\frac 54}\right)n^{\frac 38}}{\pi(1-\pi^2/24)}. \end{align} $$

Utilizing (3.16) again, the error arises from integrating over the remaining parts of the interval can be bounded by

(3.33) $$ \begin{align} \widetilde{S}_{1err}\leq\frac{8\sqrt{2}e^{2\pi+\frac{\pi}{8}}\left(1+\log\left(\frac{c-1}2\right)\right)n^{\frac 14}}{c\pi(1-\pi^2/24)}. \end{align} $$

We now give a bound for $\widetilde {S}_2$ . Applying (3.31), we deduce that

$$ \begin{align*} \left|\widetilde{S}_2\right|\leq \sqrt{2}\left|\sin\left(\frac{\pi a}{c}\right)\right|e^{2\pi}\sum_{1\leq k\leq \sqrt{n}\atop c|k}k^{-\frac 32} \sum_{h=1\atop(h,k)=1}^{k} \frac{1}{\left|\sin\left(\frac{\pi h}{c}\right)\right|} \max_z \left|e^{\frac{\pi}{8kz}}\widehat{T}_1\right|\!. \end{align*} $$

Here we also use the change of variables $ah'\rightarrow h$ . Utilizing the triangle inequality and $|q_1|<1$ , we get that

$$ \begin{align*} \left|\frac{(q_1^{1/2};q_1^{1/2})_\infty}{(q_1^2;q_1^2)_\infty}\right|=\left|\frac{(q_1^{1/2};q_1)_\infty}{(-q_1;q_1)_\infty}\right|\leq \frac{2(-|q_1|;|q_1|)_\infty}{(|q_1|;|q_1|)_\infty}. \end{align*} $$

Combining this with the identity

$$\begin{align*}\frac{(-q_1;q_1)_\infty}{(q_1;q_1)_\infty}=\sum_{r=0}^{\infty} \overline{p}(r)q_1^r\end{align*}$$

and (3.30), we can infer that

$$ \begin{align*} \left|\widehat{T_1}\right| \leq 3\sum_{r=1}^\infty\overline{p}(r)e^{-\pi r}+2\left(\sum_{r=1}^\infty\overline{p}(r)e^{-\pi r}\right)^2=3\epsilon_1+2\epsilon_1^2. \end{align*} $$

Applying (3.16), we have

(3.34) $$ \begin{align} \left|\widetilde{S}_2\right|\leq \frac{4\sqrt{2}\left|\sin\left(\frac{\pi a}{c}\right)\right|e^{2\pi+\frac{\pi}8}(3\epsilon_1+2\epsilon_1^2)\left(1+\log\left(\frac{c-1}2\right)\right)n^{\frac 14}}{c\pi \left(1-\pi^2/24\right)}. \end{align} $$

Summing up (3.32), (3.33), and (3.34) gives (3.28). This completes the proof.

The proof for $\Sigma _3$ is very similar to that for $\Sigma _1$ , so we have omitted the detailed calculations.

Lemma 3.7 $\Sigma _3$ leads to an error term, as defined in (3.7). Additionally, the upper bound for $\Sigma _3$ is as follows:

$$ \begin{align*} |\Sigma_3| \leq 8 e^{\frac{5}{2}\pi}(1+\epsilon_1)(\epsilon_2+e^{\frac{\pi}{2}}\epsilon_3)n^{\frac 14}. \end{align*} $$

Proof By (3.18), it is easy to see that

(3.35) $$ \begin{align} &e^{\frac{2\pi ialh'}{cc_1}-\frac{\pi ia^2k_1h'}{cc_1}} q_1^{-\frac{l^2}{2c_1^2}}\overline{C}\left(ah',\frac{lc}{c_1},c;q_1\right) =\sum_{r=r_0}^\infty\sum_{s\pmod{c}}\overline{b}(r,s)e^{\frac{2\pi im_{r,s}h'}{k}}q_1^r, \end{align} $$

where $m_{r,s}\in \mathbb {Z}$ . By the same argument as for $\Sigma _4$ , we can find that the there is no part contributing to the main term, resulting in

$$ \begin{align*} \Sigma_3=O(n^\varepsilon). \end{align*} $$

Now we consider the bound of $\Sigma _3$ . Similar to the proof for $\Sigma _1$ , we have

$$ \begin{align*} |\Sigma_3|\leq 8\left|\sin\left(\frac{\pi a}{c}\right)\right|e^{2\pi}\sum_{h, k\atop c\nmid k}k^{-\frac 32}\max_z \left|q_1^{-\frac {l^2}{2c_1^2}}\overline{C}\left(h,\frac{lc}{c_1},c;q_1\right)\right|. \end{align*} $$

Combining (3.18), we have

$$ \begin{align*} \left|\overline{C}\left(h,\frac{lc}{c_1},c;q_1\right)\right| &\leq\frac{1}{2}\sum_{n=0}^\infty\overline{p}(n)e^{-\pi n} \left(\sum_{m=0}^\infty e^{-\pi m(m+1)/2-\frac{\pi l}{2c_1}}\left|\frac{e^{-\frac{\pi ih}{c}}} {1-e^{-\frac{2\pi ih}{c}q_1^{m+\frac{l}{c_1}}}}\right| \right. \\[5pt] &\quad \left.+\sum_{m=1}^\infty e^{-\pi m(m+1)/2+\frac{\pi l}{2c_1}}\left|\frac{e^{\frac{\pi ih}{c}}} {1-e^{\frac{2\pi ih}{c}q_1^{m-\frac{l}{c_1}}}}\right|\right). \end{align*} $$

Since

$$ \begin{align*} &\left|\frac{e^{-\frac{\pi ih}{c}}}{1-e^{-\frac{2\pi ih}{c}q_1^{m+\frac{l}{c_1}}}}\right|\leq \frac {1}{1-e^{-\pi m-\frac{\pi }{c}}}, \qquad\left|\frac{e^{\frac{\pi ih}{c}}}{1-e^{\frac{2\pi ih}{c}q_1^{m-\frac{l}{c_1}}}}\right|\leq \frac {1}{1-e^{-\pi m+\pi\left(1-\frac{1}{c}\right)}}, \end{align*} $$

we have

$$ \begin{align*} |\Sigma_3| \leq 4 e^{\frac{5}{2}\pi}(1+\epsilon_1)(\epsilon_2+e^{\frac{\pi}{2}}\epsilon_3)\sum_{1\leq k\leq \sqrt{n}\atop c\nmid k}k^{-\frac 12} \leq 8 e^{\frac{5}{2}\pi}(1+\epsilon_1)(\epsilon_2+e^{\frac{\pi}{2}}\epsilon_3)n^{\frac 14}. \end{align*} $$

This completes the proof.

Given the established estimates for $\Sigma _1$ , $\Sigma _2$ , $\Sigma _3$ , and $\Sigma _4$ , the proof of Theorem 1.1 follows readily.

Proof of Theorem 1.1

In light of Lemmas 3.33.7, we derive the asymptotic formula for $\overline {A}\left (\frac {a}{c};n\right )$ , including an initial estimation of the error term. Given that this initial error bound is overly broad and lacks precision, we proceed to provide a more detailed and specific error bound.

We first give the estimates of constants $\epsilon _1$ , $\epsilon _2$ and $\epsilon _3$ in (3.8). Using the fact that for $n\geq 1$ ,

$$ \begin{align*} \overline p(n)<e^{\pi\sqrt{n}}, \end{align*} $$

we have

$$ \begin{align*} \epsilon_1\leq\int_1^\infty e^{\pi\sqrt{r}}\cdot e^{-\pi r}dr<0.5488. \end{align*} $$

It can be easily verify by derivation that,

(3.36) $$ \begin{align} \frac{1}{1-e^{-\frac{k\pi}{c}}}\leq k\pi c,~~k=1,2. \end{align} $$

Hence, we also can compute that

$$ \begin{align*}\epsilon_2<\frac{1}{1-e^{-\frac{\pi}{c}}}+\int_1^\infty\frac{e^{-\pi r(r+1)/2}}{1-e^{-\pi r}}\mathrm{d}r<\pi c+0.0085.\end{align*} $$

Similarly, $\epsilon _3<\pi c+0.0001$ . Moveover, we have the following inequality [Reference Zhang and Zhong20, Eq. (3.13)]

(3.37) $$ \begin{align} \frac{1+\log(\frac{c-1}{2})}{\pi\left(1-\frac{\pi^2}{24}\right)}<0.2704c. \end{align} $$

In view of Lemma 3.4 and (3.37), we have

(3.38) $$ \begin{align} |\Sigma_1| &\leq 8e^{2\pi}(1+\epsilon_1)\cdot 0.2704n^{\frac 14}<1794.0921n^{\frac 14}. \end{align} $$

Similarly, by Lemma 3.7, we have

(3.39) $$ \begin{align} |\Sigma_3| &\leq (582623.3677c+286.6509)n^{\frac 14}. \end{align} $$

By Lemma 3.6 and (3.37), we obtain the bound of the error arising from $\Sigma _2$ :

(3.40) $$ \begin{align} 5153.9942n^{\frac 14}+2251.2819cn^{\frac 38}. \end{align} $$

Recall that

$$\begin{align*}\delta_0=\frac 1{2c^2}-\frac 1{2c}+\frac 1{16}<\frac 1{16}.\end{align*}$$

Hence, in view of Lemma 3.5 and (3.36), we can bound the error arising from $\Sigma _4$ by

(3.41) $$ \begin{align} (123.4854+1042254.902c)n^{\frac 14}+104624.4148cn^{\frac 38}. \end{align} $$

Summing up (3.38), (3.39), (3.40), and (3.41) yields

$$ \begin{align*} \overline{R}_c(n) &\leq(1624878.2697c+7358.2224)n^{\frac 14}+106875.6967cn^{\frac 38} \\ &\leq(1700009.4994c + 7358.2224) n^{\frac 38}. \end{align*} $$

This completes the proof.

4 Asymptotic formula for $\overline {M}(a,c,n)$

In this section, we will employ Theorem 1.1 to derive the asymptotic formula for $\overline {M}(a,c,n)$ , as indicated by Corollary 1.2. Following that, we will proceed to estimate the error term of $\overline {M}(a,c,n)$ , enabling us to establish a more precise asymptotic formula, as presented in Theorem 1.3.

Proof of Corollary 1.2

By the orthogonality of roots of unity, we obtain

(4.1) $$ \begin{align} \sum_{n=0}^\infty\overline{M}(a,c,n)q^n=\frac{1}{c}\sum_{n=0}^\infty \overline{p}(n)q^n +\frac{1}{c}\sum_{j=1}^{c-1}\zeta_c^{-aj}\overline{C}\left(\zeta_c^j;q\right)\!. \end{align} $$

Recall the following asymptotic formula for $\overline {p}(n)$ in [Reference Zuckerman21]:

(4.2) $$ \begin{align} \overline{p}(n)=\frac{1}{2\pi}\sum_{k=1\atop 2\nmid k}^\infty\sqrt{k}\sum_{h=0\atop (h,k)=1}^k \frac{\omega_{h,k}^2}{\omega_{2h,k}}e^{-\frac{2\pi inh}{k}}\frac{\mathrm{d}}{\mathrm{d}n} \left(\frac{\sinh\frac{\pi\sqrt{n}}{k}}{\sqrt{n}}\right). \end{align} $$

By substituting Theorem 1.1 and (4.2) into (4.1), the proof is concluded.

Our next objective is to give an asymptotic formula of $\overline {M}(a,c,n)$ with an effective bound. By Corollary 1.2 and (4.2), we obtain

(4.3) $$ \begin{align} \overline{M}(a,c,n)&=\frac{\overline{p}(n)}{c}+\frac{1}{c} \sum_{j=1}^{c-1}\zeta_c^{-aj}in^{-\frac{1}{2}} \sum_{\begin{subarray}{c} 1\leq k\leq \sqrt{n}\\ c'|k,~2\nmid k \end{subarray}} \frac{\overline{B}_{j',c',k}(-n,0)}{\sqrt{k}}\sinh \left(\frac{\pi\sqrt{n}}{k}\right) \nonumber \\[5pt] &\quad +\frac{1}{c}\sum_{j=1}^{c-1}\zeta_c^{-aj}2n^{-\frac{1}{2}} \sin\left(\frac{\pi j}{c}\right) \nonumber\\[5pt] &\quad \cdot\sum_{\begin{subarray}{c} 1\leq k\leq \sqrt{n}\\ c'\nmid k,~2\nmid k\\ \delta_{j',c',k,r}^i>0\\ r\geq0,~i\in\{+,-\} \end{subarray}} \frac{\overline{D}_{j',c',k}(-n,m_{j',c',k,r}^i)}{\sqrt{k}} \sinh\left(\frac{4\pi}{k}\sqrt{n\delta_{j',c',k,r}^i}\right)+R_c(n). \end{align} $$

We denote the second and third summand as $\overline G_1$ and $\overline G_2$ , respectively. To complete the proof of Theorem 1.3, we require the bounds for $\overline G_1$ and $\overline G_2$ .

Lemma 4.1 Let c be an odd integer and n be a positive integer. We have

$$ \begin{align*} |\overline G_1|\leq 0.1803 n^{\frac 14}\cdot e^{\frac{\pi\sqrt{n}}{3}}, \end{align*} $$

and

(4.4) $$ \begin{align} |\overline G_2|\leq \frac{c}{12} n^{\frac 14} e^{4\pi\sqrt{n\delta_0}}. \end{align} $$

Proof With the fact that $|\exp (\pi i x)|=1$ for $x\in \mathbb {R}$ , letting $jh'\rightarrow h$ in the summation of sine, we have

$$ \begin{align*} \left|\sum_{\begin{subarray}{c} 1\leq k\leq \sqrt{n}\\ c'|k,~2\nmid k \end{subarray}} \frac{\overline{B}_{j',c',k}(-n,0)}{\sqrt{k}}\sinh\left(\frac{\pi\sqrt{n}}{k}\right)\right| \leq \sinh\left(\frac{\pi\sqrt{n}}{3}\right) \sum_{\begin{subarray}{c} 1\leq k\leq \sqrt{n}\\ c|k,~2\nmid k \end{subarray}} \frac 1{\sqrt{k}} \sum_{\begin{subarray}{c} h=1\\ (h,k)=1 \end{subarray}}^k \frac 1{\left|\sin\left(\frac{\pi h}{c}\right)\right|}. \end{align*} $$

Using the estimate (3.16), we obtain that

(4.5) $$ \begin{align} \left|\sum_{\begin{subarray}{c} 1\leq k\leq \sqrt{n}\\ c'|k,~2\nmid k \end{subarray}} \frac{\overline{B}_{j,c,k}(-n,0)}{\sqrt{k}}\sinh\left(\frac{\pi\sqrt{n}}{k}\right)\right| &\leq \sinh\left(\frac{\pi\sqrt{n}}{3}\right) \frac {2\left(1+\log\left(\frac {c-1}2\right)\right)}{\pi(1-\pi^2/24)} \sum_{\begin{subarray}{c} 1\leq k\leq \sqrt{n}\\ c|k,~2\nmid k \end{subarray}} k^{\frac 12} \notag\\[5pt] &\leq \frac {4n^{3/4}\left(1+\log\left(\frac {c-1}2\right)\right)}{3c\pi(1-\pi^2/24)} \sinh\left(\frac {\pi \sqrt{n}}3\right). \end{align} $$

Here it is used that following estimation of the sum:

$$ \begin{align*} \sum_{\begin{subarray}{c} 1\leq k\leq \sqrt{n}\\ c|k,~2\nmid k \end{subarray}} k^{\frac 12} \leq c^{\frac 12}\sum_{1\leq j\leq \lfloor\frac Nc\rfloor}j^{\frac 12}\leq c^{\frac 12}\int_1^{\lfloor\frac Nc\rfloor} x^{\frac 12}dx\leq \frac 2{3c}n^{\frac 34}. \end{align*} $$

By (4.5) and (3.37), we have

$$ \begin{align*} |\overline G_1| \leq\frac{2n^{\frac 14}\left(1+\log(\frac{c-1}{2})\right)}{3\pi c\left(1-\frac{\pi^2}{24}\right)}\cdot e^{\frac{\pi\sqrt{n}}{c}} \leq 0.1803 n^{\frac 14}\cdot e^{\frac{\pi\sqrt{n}}{3}}. \end{align*} $$

We next turn to $\overline G_2$ . Recall that $\delta _{j,c,k,r}^i\leq \delta _0$ . Combining $|\overline {D}_{j,c,k}(-n,m_{j,c,k,r}^i)|\leq k$ , we have

(4.6) $$ \begin{align} |\overline G_2|\leq n^{-\frac 12} e^{4\pi\sqrt{n\delta_0}}\sum_{\begin{subarray}{c} 1\leq k\leq \sqrt{n}\\ c'\nmid k,~2\nmid k\\ \delta_{j',c',k,r}^i>0\\ r\geq0,~i\in\{+,-\} \end{subarray}} \sqrt{k}. \end{align} $$

Noting that the number of r satisfying $\delta _{j,c,k,r}^i>0$ is less than $\frac {c}{16}$ , we have

(4.7) $$ \begin{align} \sum_{\substack{ r\geq 0,~i\in\{+,-\}\\ \delta_{j',c',k,r}^i>0 }}1\leq \frac c{8}. \end{align} $$

Moreover, one can see that

(4.8) $$ \begin{align} \sum_{1\leq k\leq \sqrt{n} \atop c'\nmid k,~2\nmid k}\sqrt{k}\leq \int_1^{\sqrt{n}}x^{\frac 12}dx\leq \frac 23 n^{\frac 34}. \end{align} $$

Substituting (4.7) and (4.8) into (4.6), we can obtain (4.4). This completes the proof.

Now we are in a position of proving Theorem 1.3.

Proof of Theorem 1.3

From [Reference Zhang and Zhong20, Theorem 6], we get the following lower bound for $\overline p(n)$ , that is, for $n\geq 1$ ,

(4.9) $$ \begin{align} \overline p(n)> \frac{1}{8n}\left(1-\frac 1{\sqrt{n}}\right)e^{\pi\sqrt{n}}. \end{align} $$

Combining with (1.2), (4.3), (4.9), and Lemma 4.1, for odd c and positive integer n, we have

$$ \begin{align*} \left|\overline R(a,c,n)\right| &\leq\left(0.1803 n^{\frac 14}e^{\frac{\pi\sqrt{n}}{3}}+\frac{c}{12} n^{\frac 14} e^{4\pi\sqrt{n\delta_0}} +(1700009.4994c + 7358.2224) n^{\frac 38}\right) \\ &\quad \cdot\frac{8n e^{-\pi\sqrt{n}}}{1-\frac{1}{\sqrt{n}}}. \end{align*} $$

Since for $n\geq 2$ ,

$$\begin{align*}\frac{1}{1-\frac{1}{\sqrt{n}}}\leq\frac{1}{1-\frac{1}{\sqrt{2}}}\leq3.415,\end{align*}$$

which yields that

$$ \begin{align*} \left|\overline R(a,c,n)\right| &\leq 4.93 n^{\frac 54} e^{-\frac{2}{3}\pi\sqrt{n}}+2.28 cn^{\frac 54} e^{(4\sqrt{\delta_0}-1)\pi\sqrt{n}} \\ &\quad + 10^5 (464.443c + 2.011)n^{\frac{11}{8}}e^{-\pi\sqrt{n}}. \end{align*} $$

We take the sum of all three coefficients, the highest order exponential, and the highest power of n from the three terms and put them together in one term. Note that $4\sqrt {\delta _0}>\frac 13$ for $c\geq 9$ . Therefore, we get the bounds of $\overline R(a,c,n)$ , which completes the proof.

5 Inequalities of $\overline {M}(a,c,n)$

In this section, utilizing the asymptotic formulas obtained earlier, we establish several inequality relationships concerning $\overline {M}(a,c,n)$ , including crank differences, positivity, and strict log-subadditivity. First, we will utilize Theorem 1.1 to prove Theorem 1.4.

Proof of Theorem 1.4

By (4.1) we have

(5.1) $$ \begin{align} \sum_{n=0}^\infty\left(\overline{M}(a,c,n)-\overline{M}(b,c,n)\right)q^n =\frac{2}{c}\sum_{j=1}^{\frac{c-1}{2}}\rho_j(a,b,c)\overline{C}(\zeta_c^j;q), \end{align} $$

where

$$\begin{align*}\rho_j(a,b,c)=\cos\left(\frac{2\pi aj}{c}\right) -\cos\left(\frac{2\pi bj}{c}\right).\end{align*}$$

We use Theorem 1.1, with a change of variables that does not effect the theorem. If $c\nmid k$ , we redefine $0<l<c$ to be the unique solution to the congruence $l\equiv jk$ (mod c). Inserting Theorem 1.1 into (5.1), we obtain

$$ \begin{align*} \overline{M}(a,c,n)-\overline{M}(b,c,n) =\sum_{j=1}^{\frac{c-1}{2}}\left(\overline{S}_j(a,b,c;n)+\sum_{i\in\{+,-\}} \overline{T}_j^i(a,b,c;n)+O(n^\varepsilon)\right), \end{align*} $$

where

$$ \begin{align*} \overline{S}_j(a,b,c;n)&=\rho_j(a,b,c)\frac{2i}{c\sqrt{n}} \sum_{\begin{subarray}{c} 1\leq k\leq \sqrt{n}\\ c|k,~2\nmid k \end{subarray}} \frac{\overline{B}_{j,c,k}(-n,0)}{\sqrt{k}}\sinh\left(\frac{\pi\sqrt{n}}{k}\right), \nonumber\\[5pt] \overline{T}_j^i(a,b,c;n)&=\rho_j(a,b,c)\frac{4}{c\sqrt{n}}\sin\left(\frac{\pi j}{c}\right) \sum_{\begin{subarray}{c} 1\leq k\leq \sqrt{n}\\ c\nmid k,~2\nmid k\\ \delta_{j,c,k,r}^i>0\\ r\geq0 \end{subarray}} \frac{\overline{D}_{j,c,k}(-n,m_{j,c,k,r}^i)}{\sqrt{k}} \\ &\quad\times\sinh\left(\frac{4\pi}{k}\sqrt{n\delta_{j,c,k,r}^i}\right). \end{align*} $$

Then, we need to find the main term in $\overline {M}(a,c,n)-\overline {M}(b,c,n)$ .

The main term:

Firstly, we detect the main contribution coming from sinh. In $\overline {S}_j$ , the main term occurs for $k=c$ , giving $\sinh \left (\frac {\pi \sqrt {n}}{c}\right )$ as the main hyperbolic sine argument, whereas in $\overline {T}_j^i$ it is given by $k=1$ . Recall that $\delta _{j,c,k,r}^{i}<\delta _{j,c,k,0}^{+}$ and $\delta _{j,c,k,0}^{+}$ arrives the maximum value $\delta _0=\frac 1{2{c}^2}-\frac 1{2c}+\frac 1{16}$ at $l=1$ . Moreover, $l\equiv jk$ (mod c) together with $k=l=1$ gives that $j=l=1$ . These imply that the largest argument occurs for $k=1, r=0$ and $j=1$ . For $k=1, r=0,$ and any j, we easily see that $\overline {D}_{j,c,1}(-n,m_{j,c,1,0}^+)=\overline {D}_{j,c,1}(-n,0)=1$ . Now, since

$$ \begin{align*} 4\sqrt{\delta_0}>\frac 1c \end{align*} $$

for $c\geq 9$ , the main term is

$$ \begin{align*} \overline{T}_1^+=\rho_1(a,b,c)\frac{4}{c\sqrt{n}}\sinh\left(4\pi \sqrt{n\delta_0}\right), \end{align*} $$

and this is positive for all $0\leq a<b\leq \frac {c-1}2$ . Therefore, for sufficiently large n, we obtain $\overline M(a,c,n)>\overline M(b,c,n)$ . The following step entails providing a clear definition of “sufficiently large” by establishing bounds for the remaining terms.

Bounding contribution of $\overline {S}_j$ :

Since $|\rho _j(a,b,c)|<2$ , by (4.5), we have

$$ \begin{align*} |\overline{S}_j(a,b,c;n)|\leq \frac {16n^{1/4}\left(1+\log\left(\frac {c-1}2\right)\right)}{3c^2\pi(1-\pi^2/24)} \sinh\left(\frac {\pi \sqrt{n}}c\right). \end{align*} $$

Next we want to bound the $\overline {T}_j^i$ for $j\geq 2$ and $\overline {T}_1^-$ .

Bounding the contribution of $\overline {T}_j^i$ for $j\geq 2$ :

For $k\geq 2$ , we trivially bound

$$ \begin{align*} |\overline{D}_{j,c,k}(-n,m_{j,c,k,r}^+)|\leq k. \end{align*} $$

Since $\sinh (x)=(e^x-e^{-x})/2$ , we have

$$ \begin{align*} \sinh\left(\frac{4\pi}{k}\sqrt{n\delta_{j,c,k,r}^i}\right)\leq \frac {e^{2\pi \sqrt{n\delta_0}}}2. \end{align*} $$

Next, recall that the number of r satisfying $\delta _{j,c,k,r}^i>0$ is less than $\frac {c}{16}$ . Thus we can bound $\overline {T}_j^i$ for $k\geq 2$ by the following expression:

$$ \begin{align*} \frac {1}{6} n^{1/4} e^{2\pi \sqrt{n\delta_0}}. \end{align*} $$

Since $\delta _{j,c,1,0}^i<\delta _0$ for $j\geq 2$ , we bound the $k=1$ contribution by the argument

$$ \begin{align*} \frac {1}{4\sqrt{n}}e^{4\pi \sqrt{n\delta_{2,c,1,0}^i}}. \end{align*} $$

Before coming to the error terms of the circle method we have to bound the contribution of $\overline {T}_1^-$ .

Bounding the contribution of $\overline {T}_1^-$ :

By the same analysis, it is possible to bound this term by a similar expression as the ones before. By bounding the sinh by the exponential function, using $|\rho _j(a,b,c)|<2$ and showing $\delta _{1,c,k,r}^-$ is smaller than $\delta _{2,c,1,0}^+$ and so choosing the right argument in the exponential function, $\overline {T}_1^-$ can be bounded by

$$ \begin{align*} \frac {1}{4\sqrt{n}}e^{4\pi \sqrt{n\delta_{2,c,1,0}^+}}. \end{align*} $$

The explicit constant:

Denoting the four different error terms in Lemmas 3.43.7, $\overline {S}_j$ , $\overline {T}_j^i$ for $j\geq 2$ and $\overline {T}_1^-$ by $\Sigma _{err,m}$ we can conclude that

$$ \begin{align*} \overline{N}_{a,b,c}=\min\left\{n\in\mathbb{N} \left|\overline T_1^+-\sum_m\Sigma_{err,m}(c,n)>0\right.\right\}. \end{align*} $$

This finishes the proof.

For $c<9$ , the $S_j$ will give the main contributions to the circle method as noticed in the last theorem. As the sign of $S_j$ depend on the sign of $\bar {B}_{j,c,k}$ and the $\bar {B}_{j,c,k}$ oscillate we will have the following.

Corollary 5.1 For sufficiently large n, we obtain the following inequalities.

  1. (1) The crank differences $\overline {M}(a, 3,3 n+d)-\overline {M}(b, 3,3 n+d)$ are

    $$\begin{align*}\begin{cases}<0, \quad & \text { if }(a, b, d) \in\{(0, 1, 1),(0,1,2)\}, \\>0, \quad & \text { if }(a, b, d) \in\{(0,1,0)\}. \end{cases} \end{align*}$$
  2. (2) The crank differences $\overline {M}(a, 5,5 n+d)-\overline {M}(b, 5,5 n+d)$ are

    $$\begin{align*}\begin{cases}<0, \quad &\text { if }(a, b, d) \in\{(0, 2, 4),(0,1,2),(0,1,4), (0, b,b),(1,2,0),(1,2,3)\}, \\>0, \quad & \text { if }(a, b, d) \in\{(0,b,0),(1, 2, 1), (0,1,3)\} .\end{cases} \end{align*}$$
  3. (3) The crank differences $\overline {M}(a, 7,7 n+d)-\overline {M}(b, 7,7 n+d) $ are

    $$\begin{align*}\begin{cases}<0, \quad & \text { if }(a, b, d) \in\{(0, b, 4),(0,1,1),(0, 1,2), (0,2,2),(1,2,0),\\ & \quad (1,2,5),(2,3,6)\}, \\ >0, \quad & \text { if }(a, b, d) \in\{(0,b,0),(0, b, 3), (0,1,5),(0,2,6),(0,3,5),(1,2,1),\\ &\quad (1,2,4),(1,2,6),(1,3,1),(1,3,2),(1,3,4),(2,3,0),(2,3,2),(2,3,5)\} .\end{cases} \end{align*}$$

Proof For c being an odd integer less than $9$ , these inequalities can be readily verified using mathematical software. Specifically, for cases where $c < 7$ and $k = c$ , this setting results in the largest argument for the hyperbolic sine function in $\overline {S}j$ . Consequently, it is sufficient to determine the sign of $\sum _j \rho _j(a, b, c) \overline {B}{j, c, c}(-n, 0)$ to identify which inequality the crank differences satisfy. For the case where $c=7$ , the arguments of the hyperbolic sines in $\overline {S}_j$ and $\overline {T}_1^+$ may align and potentially cancel each other out. Therefore, we compute the sum of $\sum _j i\rho _j(a, b, c) \overline {B}_{j, c, c}(-n, 0)/\sqrt {7}$ and $ 2\rho _1(a, b, c)\sin {\frac {\pi }{7}}$ to determine which inequality is met by the crank differences.

Therefore, using Theorem 1.3, we can establish Theorem 1.5.

Proof of Theorem 1.5

In light of (1.3), to prove $\overline M(a,c,n)>0$ , it is sufficient to prove

$$ \begin{align*} \left|\overline R(a,c,n)\right|<\frac 1c \end{align*} $$

if $c<9$ and $n\geq 196$ , and

(5.2) $$ \begin{align} \left|\overline R(a,c,n)\right|<\frac 1{2c} \end{align} $$

if $c\geq 9$ and $n>\overline {Q}_c$ , where $\overline {Q}_c$ is defined in (1.4). According to the bound of $\overline R(a,c,n)$ in Theorem 1.3, we just need to show for $c<9$

(5.3) $$ \begin{align} 10^5(464.45c + 2.02)n^{\frac{11}{8}}e^{-\frac{2}{3}\pi\sqrt{n}}<\frac 1c \end{align} $$

and for $c\geq 9$

(5.4) $$ \begin{align} 10^5(464.45c + 2.02)n^{\frac{11}{8}}e^{-\left(1-\sqrt{1-\frac 8{c}+\frac 8{c^2}}\right)\pi\sqrt{n}}<\frac 1{2c}. \end{align} $$

In order to verify (5.3), it suffices to prove that

$$ \begin{align*} 10^5(464.45\times9 + 2.02)n^{\frac{11}{8}}e^{-\frac{2}{3}\pi\sqrt{n}}<\frac 1{9}, \end{align*} $$

which holds for $n\geq 196$ . We next deal with the case of $c\geq 9$ . To prove (5.4), it is equivalent to prove that

(5.5) $$ \begin{align} \left(1-\sqrt{1-\frac 8{c}+\frac 8{c^2}}\right)\pi\sqrt{n}-\frac{11}{8}\log n>\log\left(2\times10^5\times(464.45c^2 + 2.02c)\right). \end{align} $$

Since for $x\geq 104$ ,

$$ \begin{align*} \log x<\frac{16}{11}x^{\frac 14}, \end{align*} $$

and for $c\geq 9$ ,

$$ \begin{align*} \left(1-\sqrt{1-\frac 8{c}+\frac 8{c^2}}\right)>\frac 4c, \end{align*} $$

we have

(5.6) $$ \begin{align} \left(1-\sqrt{1-\frac 8{c}+\frac 8{c^2}}\right)\pi\sqrt{n}-\frac{11}{8}\log n>\frac{4\pi\sqrt{n}}c-2n^{\frac 14}. \end{align} $$

In view of (5.5) and (5.6), it is sufficient to verify

$$ \begin{align*} \frac{4\pi\sqrt{n}}c-2n^{\frac 14}>\log\left(2\times10^5\times(464.45c^2 + 2.02c)\right), \end{align*} $$

which holds for $n\geq \overline Q_c$ . This completes the proof.

We use the bound of $\overline R(a,c,n)$ to prove Theorem 1.6 now.

Proof of Theorem 1.6

We first consider the case $c<9$ . By Theorem 1.3, we can give a lower and an upper bound for $\overline M(a,c,n)$ , that is,

$$ \begin{align*} \overline L(c,n)< \overline M(a,c,n)<\overline U(c,n), \end{align*} $$

where

$$ \begin{align*} \overline L(c,n):=\overline p(n)\left(\frac 1c-10^5(464.45c+2.02)n^{\frac{11}{8}}e^{-\frac{2\pi}{3}\sqrt{n}}\right), \\ \overline U(c,n):=\overline p(n)\left(\frac 1c+10^5(464.45c+2.02)n^{\frac{11}{8}}e^{-\frac{2\pi}{3}\sqrt{n}}\right). \end{align*} $$

For $3\leq c<9$ , we have

$$ \begin{align*} \overline L(c,n)>\overline p(n)\left(\frac 19-10^5(464.45\times 9+2.02)n^{\frac{11}{8}}e^{-\frac{2\pi}{3}\sqrt{n}}\right), \end{align*} $$

Noting that $n^{\frac {11}{8}}e^{-\frac {2\pi }{3}\sqrt {n}}$ is decreasing for $n\geq 196$ , it follows that

$$ \begin{align*} \overline L(c,n)>0.0017\overline p(n). \end{align*} $$

Similarly, we get

$$ \begin{align*} \overline U(c,n)<\overline p(n)\left(\frac 13+10^5(464.45\times 9+2.02)n^{\frac{11}{8}}e^{-\frac{2\pi}{3}\sqrt{n}}\right)<0.4428\overline p(n). \end{align*} $$

Hence, when $3\leq c<9$ and $n\geq 196$ , we have

(5.7) $$ \begin{align} 0.0017~\overline{p}(n)< \overline M(a,c,n)<0.4428~\overline{p}(n). \end{align} $$

From [Reference Zhang and Zhong20, Theorem 6], we know that for $n\geq 1$ ,

(5.8) $$ \begin{align} \frac{1}{8n}\left(1-\frac 1{\sqrt{n}}\right)e^{\pi\sqrt{n}}<\overline p(n)< \frac{1}{8n}\left(1+\frac 1{\sqrt{n}}\right)e^{\pi\sqrt{n}}. \end{align} $$

For $c<9$ , let $n_1=\lambda n_2$ with $\lambda \geq 1$ . Then by (5.7) and (5.8), we have

$$ \begin{align*} \overline M(a,c,n_1)\overline M(a,c,n_2)>\frac{0.0017^2}{64\lambda n_2^2}\cdot\left(1-\frac{1}{\sqrt{\lambda n_2}}\right)\left(1-\frac{1}{\sqrt{n_2}}\right)\cdot e^{\pi\sqrt{\lambda n_2}+\pi\sqrt{n_2}} \end{align*} $$

and

$$ \begin{align*} \overline M(a,c,n_1+n_2)<\frac{0.4428}{8(\lambda n_2+n_2)}\left(1+\frac 1{\sqrt{\lambda n_2+n_2}}\right)e^{\pi\sqrt{\lambda n_2+n_2}} \end{align*} $$

for $n\geq 196$ . Hence it suffices to show that

$$ \begin{align*} T_{n_2}(\lambda)>\log(V_{n_2}(\lambda))+\log(S_{n_2}(\lambda)), \end{align*} $$

where

$$ \begin{align*} T_{n_2}(\lambda)&:=\pi\sqrt{\lambda n_2}+\pi\sqrt{n_2}-\pi\sqrt{\lambda n_2+n_2},\\ V_{n_2}(\lambda)&:=\frac{0.4428}{0.0017^2}\cdot\frac{8\lambda n_2}{\lambda+1},\\ S_{n_2}(\lambda)&:=\frac{1+\frac 1{\sqrt{\lambda n_2+n_2}}}{\left(1-\frac{1}{\sqrt{\lambda n_2}}\right)\left(1-\frac{1}{\sqrt{n_2}}\right)}. \end{align*} $$

On the one hand, it can be shown that $T_{n_2}(\lambda )$ is increasing and $S_{n_2}(\lambda )$ is decreasing for $\lambda \geq 1$ . On the other hand,

$$ \begin{align*} V_{n_2}(\lambda)<\frac{0.4428\cdot8 n_2}{0.0017^2}. \end{align*} $$

So it is sufficient to verify that

$$ \begin{align*} T_{n_2}(1)&=2\pi\sqrt{n_2}-\pi\sqrt{2n_2}>\log\left(\frac{0.4428\cdot8 n_2}{0.0017^2}\right)+\log\left(\frac{1+\frac 1{\sqrt{2n_2}}}{\left(1-\frac{1}{\sqrt{n_2}}\right)^2}\right), \end{align*} $$

which holds for $n_2\geq 107$ .

Finally, we deal with the case $c\geq 9$ . In this case, we bound $ \overline M(a,c,n)$ by a different way. Applying (1.3) and (5.2), we obtain that

$$ \begin{align*} \frac{1}{2c}\overline p(n)<\overline M(a,c,n)< \frac{3}{2c}\overline p(n) \end{align*} $$

for $n\geq \overline Q_c$ . By the same argument of the case $c<9$ , it suffices to show that

$$ \begin{align*} T_{n_2}(\lambda)>\log(\overline{V}_{n_2}(\lambda))+\log(S_{n_2}(\lambda)), \end{align*} $$

where

$$ \begin{align*} \overline{V}_{n_2}(\lambda):=6c\cdot\frac{8\lambda n_2}{\lambda+1}. \end{align*} $$

It is obvious that

$$ \begin{align*} \overline{V}_{n_2}(\lambda)<48cn_2. \end{align*} $$

So it is equivalent to verify that

(5.9) $$ \begin{align} T_{n_2}(1)=2\pi\sqrt{n_2}-\pi\sqrt{2n_2}>\log\left(48cn_2\right)+\log\left(\frac{1+\frac 1{\sqrt{2n_2}}}{\left(1-\frac{1}{\sqrt{n_2}}\right)^2}\right). \end{align} $$

On the one hand, when $n_2\geq 2$ , we get

(5.10) $$ \begin{align} \log\left(48cn_2\right)+\log\left(\frac{1+\frac 1{\sqrt{2n_2}}}{\left(1-\frac{1}{\sqrt{n_2}}\right)^2}\right)<\log\left(48cn_2\right)+\log\left(\frac{1+\frac 1{\sqrt{4}}}{\left(1-\frac{1}{\sqrt{2}}\right)^2}\right)<\log\left(840cn_2\right). \end{align} $$

On the other hand, when $n_2>840c$ , we have

(5.11) $$ \begin{align} T_{n_2}(1)=2\pi\sqrt{n_2}-\pi\sqrt{2n_2}>2\log(n_2)>\log(n_2)+\log(840c)=\log\left(840cn_2\right). \end{align} $$

Therefore, in light of (5.9), (5.10), and (5.11), we know (1.5) holds for $c\geq 9$ and $n_1,n_2\geq \overline Q_c$ .

Acknowledgements

We wish to thank the referee for valuable suggestions.

Footnotes

The first author is supported by the National Natural Science Foundation of China (Grant No. 12401432) and the Science and Technology Research Program of Chongqing Municipal Education Commission (Grant No. KJQN202200614). The second author is supported by the National Natural Science Foundation of China (Grant No. 12371327) and the Natural Science Foundation of Chongqing (Grant No. cstc2021jcyj-msxmX0107).

References

Andrews, G., On the theorems of Watson and Dragonette for Ramanujan’s mock theta functions . Amer. J. Math. 88(1966), no. 2, 454490.CrossRefGoogle Scholar
Andrews, G. E. and Garvan, F., Dysonł crank of a partition . Bull. Amer. Math. Soc. 18(1988), no. 2, 167171.CrossRefGoogle Scholar
Atkin, A. O. L. and Swinnerton-Der, H. P. F., Some properties of partitions . Proc. Lond. Math. Soc. (3) 4(1954), 84106.CrossRefGoogle Scholar
Bessenrodt, C. and Ono, K., Maximal multiplicative properties of partitions . Ann. Comb. 20(2016), no. 1, 5964.CrossRefGoogle Scholar
Bringmann, K., Asymptotics for rank partition functions . Trans. Amer. Math. Soc. 361 (2009) 34833500.CrossRefGoogle Scholar
Bringmann, K. and Lovejoy, J., Dyson’s rank, overpartitions, and weak Maass forms . Int. Math. Res. Not. IMRN (19) 2007(2007), rnm063, 34 pp.Google Scholar
Bringmann, K., Lovejoy, J., and Osburn, R., Rank and crank moments for overpartitions . J. Number Theory 129(2009), no. 7, 17581772.CrossRefGoogle Scholar
Bringmann, K. and Kane, B., Inequalities for differences of Dyson’s rank for all odd moduli . Math. Res. Lett. 17(2010), no. 5, 927942.CrossRefGoogle Scholar
Ciolan, A., Ranks of overpartitions: asymptotics and inequalities . J. Math. Anal. Appl. 480(2019), (2), 123444, 28 pp.CrossRefGoogle Scholar
Ciolan, A., Inequalities between overpartition ranks for all moduli . Ramanujan J. 58(2022), no. 2, 463489.CrossRefGoogle Scholar
Corteel, S. and Lovejoy, J., Overpartitions . Trans. Amer. Math. Soc. 356(2004), 16231635.CrossRefGoogle Scholar
Cui, S.-P., Gu, N. S. S., and Su, C.-Y., Ranks of overpartitions modulo 4 and 8 . Int. J. Number Theory 16(2020), no. 10, 22932310.CrossRefGoogle Scholar
Dyson, F. J., Some guesses in the theory of partitions, vol. 8. Eureka, Cambridge, 1944, pp. 1015.Google Scholar
Garvan, F. G., New combinatorial interpretations of Ramanujanł partition congruences mod 5, 7 and 11 . Trans. Am. Math. Soc. 305(1988), no. 1, 4777.Google Scholar
Jennings-Shaffer, C., Overpartition rank differences modulo 7 by Maass forms . J. Number Theory 163(2016), 331358.CrossRefGoogle Scholar
Ji, K. Q., Zhang, H. W. J., and Zhao, A. X. H., Ranks of overpartitions modulo 6 and 10 . J. Number Theory 184(2018), 235269.CrossRefGoogle Scholar
Lovejoy, J., Rank and conjugation for the Frobenius representation of an overpartition . Ann. Comb. 9(2005), 321334.CrossRefGoogle Scholar
Zapata Rolon, J. M., Asymptotics of crank generating functions and Ramanujan congruences . Ramanujan J. 38(2015), no. 1, 147178.CrossRefGoogle Scholar
Watson, G. N., A Treatise on the Theory of Bessel Functions, second edition, Cambridge University Press, Cambridge, 1944.Google Scholar
Zhang, H. W. J. and Zhong, Y., Strict log-subadditivity for overpartition rank . Ann. Comb. 27(2023), 799817.CrossRefGoogle Scholar
Zuckerman, H. S., On the coefficients of certain modular forms belonging to subgroups of the modular group . Trans. Amer. Math. Soc. 45(1939), no. 2, 298321.CrossRefGoogle Scholar