1 Introduction

Here and in what follows, we have made use of the standard q-series notation [9]

$$\begin{aligned} (a;q)_0:&=1,\\ (a;q)_n:&=\prod ^{n-1}_{k=0}(1-aq^k), \quad n\ge 1,\\ (a;q)_{\infty }:&=\prod _{k=0}^{\infty }(1-aq^{k}),\quad |q|<1 \end{aligned}$$

and

$$\begin{aligned} (a_1,a_2,\cdots , a_k;q)_n:=(a_1;q)_n(a_2;q)_n\cdots (a_k;q)_n. \end{aligned}$$

We define

$$\begin{aligned} j(z;q):=(z;q)_\infty (q/z;q)_\infty (q;q)_\infty . \end{aligned}$$

For convenience, define \(f_k\) as

$$\begin{aligned} f_k:=(q^k;q^k)_\infty . \end{aligned}$$

Definition 1.1

Let x, \(z\in C^*\) with neither z nor xz an integer power of q. Then

$$\begin{aligned} m(x,q,z):=\frac{1}{j(z;q)}\sum ^{\infty }_{r=-\infty } \frac{(-1)^rq^{(r\atopwithdelims ()2)}z}{1-q^{r-1}xz}. \end{aligned}$$

A partition of a positive integer n is a nonincreasing sequence of positive integers whose sum is n. Let p(n) denote the number of partitions of n. The generating function for p(n) is given by

$$\begin{aligned} \sum _{n=0}^{\infty }p(n)q^{n}=\frac{1}{(q;q)_{\infty }}. \end{aligned}$$

Ramanujan found the following famous congruences:

$$\begin{aligned} p(5n+4)&\equiv 0\pmod 5,\\ p(7n+5)&\equiv 0\pmod 7,\\ p(11n+6)&\equiv 0\pmod {11}. \end{aligned}$$

Recently, arithmetic properties of congruences for generating functions have received a great deal of attention. For example, Andrews [1] found the smallest part partition function and established that for \(n\ge 0\),

$$\begin{aligned} spt(5n+4)&\equiv 0\pmod 5,\\ spt(7n+5)&\equiv 0\pmod 7,\\ spt(13n+6)&\equiv 0\pmod {13}, \end{aligned}$$

where spt(n) denotes the number of the smallest part partitions of n. Ramanujan [10] presented the following function which is related to one of the Ramanujan’s sixth-order mock theta functions:

$$\begin{aligned} \phi (q):=\sum ^{\infty }_{n=0}\frac{(-q;q)_{2n}q^{n+1}}{(q;q^2)^2_{n+1}}. \end{aligned}$$

In addition, Ramanujan [10] provided a rank type generating function which is stated as follows.

$$\begin{aligned} \sum ^{\infty }_{n=0}\frac{(-q;q)_{2n}q^{n+1}}{(xq,q/x;q^2)_{n+1}}. \end{aligned}$$

Notice that \(\phi (q)\) can be derived by setting \(x=1\) in the above function. Chan [4] obtained that

$$\begin{aligned} \phi (q)=\frac{1}{2}\frac{(-q;q)_{\infty }}{(q;q)_{\infty }}\sum ^{\infty }_{n=-\infty }\frac{(-1)^nq^{(n+1)^2}}{1-q^{2n+1}}. \end{aligned}$$

Motivated by a search for similar functions which satisfy simple congruences, Chan [4] presented some congruences for mock theta functions. Let

$$\begin{aligned} \sum ^{\infty }_{n=1}a(n)q^n:=\phi (q). \end{aligned}$$

Chan found that for any integer \(p\ge 2\) and \(1\le j\le p-1\) with p and j coprime, the coefficients of the Appell–Lerch sum

$$\begin{aligned} \sum ^{\infty }_{n=0}a_{j,p}(n)q^n= \frac{1}{(q^j;q^p)_{\infty }(q^{p-j};q^p)_{\infty }(q^p;q^p)_{\infty }} \sum ^{\infty }_{-\infty }\frac{(-1)^nq^{pn(n+1)/2+jn+j}}{1-q^{pn+j}} \end{aligned}$$

satisfy the congruences

$$\begin{aligned} a_{j,p}\left( pn+pj-j^2\right) \equiv 0\pmod p. \end{aligned}$$

In addition, Chan [4, Conjecture 7.1] conjectured that

$$\begin{aligned} a(50n+19)\equiv a(50n+39)\equiv a(50n+49)\equiv 0\pmod {25},\end{aligned}$$
(1.1)
$$\begin{aligned} a_{1,3}(5n+3)\equiv a_{1,3}(5n+4) \equiv 0\pmod 5,\end{aligned}$$
(1.2)
$$\begin{aligned} a_{1,6}(2n)\equiv 0\pmod 2,\end{aligned}$$
(1.3)
$$\begin{aligned} a_{1,10}(2n)\equiv a_{3,10}(2n)\equiv 0\pmod 2,\end{aligned}$$
(1.4)
$$\begin{aligned} a_{1,6}(6n+3)\equiv 0\pmod 3,\end{aligned}$$
(1.5)
$$\begin{aligned} a_{1,10}(10n+5)\equiv a_{3,10}(10n+5)\equiv 0\pmod 5. \end{aligned}$$
(1.6)

Let

$$\begin{aligned} \sum ^{\infty }_{n=0}a_{k,j,2p}(n)q^n:=-m(q^{kp},q^p,q^j). \end{aligned}$$

Chan and Mao [5] derived that for any integer k and any two coprime integers 2p and j such that \(p\ge 1\) and \(1\le j\le 2p-1\),

$$\begin{aligned} a_{k,j,2p}(2pn+p)\equiv 0\pmod p, \end{aligned}$$

which generalizes (1.4) and (1.6). Qu et al. [11] found (1.3) and (1.4) hold. In 2018, Baruah and Begum [3] not only derived (1.1), but also proved (1.6). Recently, in view of elementary methods, Ding and Xia [7] derived

$$\begin{aligned} a_{1,3}(15n+8)\equiv a_{1,3}(15n+14)\equiv 0\pmod 5, \end{aligned}$$

which are special cases of (1.2). Then by means of Appell–Lerch sums and the theory of modular forms, Fan et.al [6] proved (1.2). Chan [4] also provided the following conjecture.

Conjecture 1.2

[4, Conjecture 7.4] Let

$$\begin{aligned} \sum ^{\infty }_{n=1}d(n)q^n=\sum ^{\infty }_{n=0}\frac{(-q;q)_{2n}q^{2n+1}}{(q;q^2)^2_{n+1}}. \end{aligned}$$

We conjecture that for any nonnegative integer n,

$$\begin{aligned} d\left( 18n+5\right)&\equiv d\left( 18n+8\right) \equiv d\left( 18n+11\right) \equiv d\left( 18n+14\right) \\&\equiv d\left( 18n+17\right) \equiv 0\pmod 3. \end{aligned}$$

In this paper, we derive the following theorems related to d(n).

Theorem 1.3

We have

$$\begin{aligned} \sum ^{\infty }_{n=1}d(n)q^n=\sum ^{\infty }_{n=0}\frac{(-q;q)_{2n}q^{2n+1}}{(q;q^2)^2_{n+1}} =\frac{1}{2}\frac{f^3_2}{f^3_1}\sum ^{\infty }_{n=0}(-1)^nq^{\frac{n^2+n}{2}}-\frac{1}{2}\sum ^{\infty }_{n=0}(-1)^nq^{n^2+n} \end{aligned}$$

Theorem 1.4

For \(n\ge 0\), we have

$$\begin{aligned} d(6n+5)\equiv 0\pmod 3,\end{aligned}$$
(1.7)
$$\begin{aligned} d(9n+5)\equiv 0\pmod 3,\end{aligned}$$
(1.8)
$$\begin{aligned} d(9n+8)\equiv 0\pmod 3. \end{aligned}$$
(1.9)

Theorem 1.5

For any odd prime p and \(n\ge 0\),

$$\begin{aligned} d\left( 9p\left( pn+i\right) +\frac{9p^2-1}{4}\right) \equiv 0\pmod 3, \end{aligned}$$

for \(i=1,2,\cdots ,p-1\).

The paper is organized as follows. We present some lemmas in Sect. 2. Theorems 1.31.5 are proved in Sect. 3.

2 Some lemmas

In order to prove the main results, the following lemmas are needed.

Lemma 2.1

[2, Agrarwal] For any parameters \(A, B, a\ne 0\), and b,

$$\begin{aligned} \sum ^{\infty }_{n=0}\frac{(B;q)_n(-Abq;q)_n q^n}{(-aq;q)_n(-bq;q)_n}&=-\frac{(B;q)_{\infty }(-Abq;q)_{\infty }}{a(-aq;q)_{\infty }(-bq;q)_{\infty }}\sum ^{\infty }_{m=0}\frac{(1/A;q)_m}{(-B/a;q)_{m+1}}\left( \frac{Abq}{a}\right) ^m\\&\quad +(1+b)\sum ^{\infty }_{m=0}\frac{(-1/a;q)_{m+1}(-ABq/a;q)_{m}}{(-B/a;q)_{m+1}(Abq/a;q)_{m+1}}(-b)^m. \end{aligned}$$

Lemma 2.2

[8, p. 15]The Rogers-Fine identity

$$\begin{aligned} \sum ^{\infty }_{n=0}\frac{(\alpha ;q)_n\tau ^n}{(\beta ;q)_n} =\sum ^{\infty }_{n=0}\frac{(\alpha ;q)_n(\alpha \tau q/\beta ;q)_n\beta ^n\tau ^nq^{n^2-n}(1-\alpha \tau q^{2n})}{(\beta ;q)_n(\tau ;q)_{n+1}}. \end{aligned}$$

Lemma 2.3

[9, Eq. (III.17), p. 242] Watson-Whipple transformation

$$\begin{aligned} \sum ^{\infty }_{n=0}\frac{1-aq^{2n}}{1-a}\cdot \frac{(a,b,c,d,e;q)_n(-1)^nq^{\frac{n^2-n}{2}}(aq)^{2n}}{(q,\frac{aq}{b},\frac{aq}{c},\frac{aq}{d},\frac{aq}{e};q)_n(bcde)^n} =\frac{(aq,\frac{aq}{de};q)_{\infty }}{(\frac{aq}{d},\frac{aq}{e};q)} \sum ^{\infty }_{n=0}\frac{(\frac{aq}{bc},d,e;q)_n}{(q,\frac{aq}{b},\frac{aq}{c};q)_n}\cdot (\frac{aq}{de})^n. \end{aligned}$$

3 Proof of Theorem 1.31.5.

Proof of Theorem 1.3

In Lemma 2.1, replace q by \(q^2\), then set \(a=b=-q\), and finally replace A and B by \(-q^{-2}\) and \(-q^2\), respectively, we find that

$$\begin{aligned} \sum ^{\infty }_{n=0}\frac{(-q;q)_{2n}q^{2n+1}}{(q;q^2)^2_{n+1}}&=\frac{(-q;q^2)_{\infty }(-q^2;q^2)_{\infty }}{(q;q^2)_{\infty }^2} \cdot \sum ^{\infty }_{n=0}\frac{(-q^2;q^2)_n(-1)^n}{(-q;q^2)_{n+1}} \nonumber \\&\quad +\frac{q}{1-q}\sum ^{\infty }_{n=0}\frac{(q^{-1};q^2)_{n+1}(q;q^2)_{n}q^n}{(-q;q^2)_{n+1}(-1;q^2)_{n+1}}\nonumber \\&=\frac{(-q;q)_{\infty }}{(1+q)(q;q^2)_{\infty }^2} \cdot \sum ^{\infty }_{n=0}\frac{(-q^2;q^2)_n(-1)^n}{(-q^3;q^2)_{n}} \nonumber \\&\quad -\frac{q}{2(1+q)}\sum ^{\infty }_{n=0}\frac{(q;q^2)_{n}(q;q^2)_{n}q^n}{(-q^3;q^2)_{n}(-q^2;q^2)_{n}} \end{aligned}$$
(3.1)

For the first summation in (3.1), we apply Lemma 2.2 with \(\alpha =-q^2\), q replaced by \(q^2\), \(\beta =-q^3\) and \(\tau =-1\) to find that

$$\begin{aligned} \sum ^{\infty }_{n=0}\frac{(-q^2;q^2)_n(-1)^n}{(-q^3;q^2)_{n}}&=\sum ^{\infty }_{n=0}\frac{(-q;q^2)_n(-q^2;q^2)_nq^{2n^2+n}(1-q^{4n+2})}{(-q^3;q^2)_n(-1;q^2)_{n+1}}\nonumber \\&=\frac{(1+q)}{2}\sum ^{\infty }_{n=0}\left( q^{2n^2+n}-q^{2n^2+3n+1}\right) \nonumber \\&=\frac{(1+q)}{2}\sum ^{\infty }_{n=0}(-1)^nq^{\frac{n^2+n}{2}}. \end{aligned}$$
(3.2)

For the second summand in (3.1), we set \(a=q^2\) and \(b=-q^2\), and replace cde and q by \(-q, q^2, q\) and \(q^2\), respectively. Then we find that

$$\begin{aligned} \sum ^{\infty }_{n=0}\frac{(q;q^2)_{n}(q;q^2)_{n}q^n}{(-q^3;q^2)_{n}(-q^2;q^2)_{n}}&=\frac{(q^2;q^2)_{\infty }(q^3;q^2)_{\infty }}{(q^4;q^2)_{\infty }(q;q^2)_{\infty }} \nonumber \\&\quad \cdot \sum ^{\infty }_{n=0}\frac{1-q^{4n+2}}{1-q^2}\frac{(q^2, -q^2, -q, q^2,q;q^2)_n\cdot (-1)^nq^{n^2+n}}{(q^2, -q^2, -q^3, q^2,q^3;q^2)_n}\nonumber \\&=(1+q)\sum ^{\infty }_{n=0}(-1)^nq^{n^2+n}. \end{aligned}$$
(3.3)

Substituting (3.2) and (3.3) into (3.1) yields that

$$\begin{aligned} \sum ^{\infty }_{n=0}\frac{(-q;q)_{2n}q^{2n+1}}{(q;q^2)^2_{n+1}}&=\frac{1}{2}\frac{(-q;q)_{\infty }}{(q;q^2)^2_{\infty }}\sum ^{\infty }_{n=0}(-1)^nq^{\frac{n^2+n}{2}}-\frac{1}{2}\sum ^{\infty }_{n=0}(-1)^nq^{n^2+n}\nonumber \\&=\frac{1}{2}\frac{f^3_2}{f^3_1}\sum ^{\infty }_{n=0}(-1)^nq^{\frac{n^2+n}{2}}-\frac{1}{2}\sum ^{\infty }_{n=0}(-1)^nq^{n^2+n}. \end{aligned}$$

This completes the proof of Theorem 1.3. \(\square \)

Proof of Theorem 1.4

First, using Theorem 1.3, we find that

$$\begin{aligned} \sum ^{\infty }_{n=0}d(n)q^n&\equiv \frac{1}{2}\frac{f_6}{f_3}\sum ^{\infty }_{n=0}(-1)^nq^{\frac{n^2+n}{2}}-\frac{1}{2}\sum ^{\infty }_{n=0}(-1)^nq^{n^2+n}\pmod 3. \nonumber \\&=\frac{1}{2}\frac{f_6}{f_3}\sum _{k=0}^{2}\sum _{n=0}^{\infty }(-1)^{n+k}q^{\frac{(pn+k)(pn+k+1)}{2}} -\frac{1}{2}\sum _{k=0}^{2}\sum _{n=0}^{\infty }(-1)^{n+k}q^{(pn+k)(pn+k+1)}\\&=\frac{1}{2}\frac{f_6}{f_3}\left( \sum ^{\infty }_{n=0}(-1)^nq^{\frac{9n^2+3n}{2}} -\sum ^{\infty }_{n=0}(-1)^nq^{\frac{9n^2+9n}{2}+1} +\sum ^{\infty }_{n=0}(-1)^nq^{\frac{9n^2+15n}{2}+3}\right) \nonumber \\&\quad -\frac{1}{2}\left( \sum ^{\infty }_{n=0}(-1)^nq^{9n^2+3n} -\sum ^{\infty }_{n=0}(-1)^nq^{9n^2+9n+2} +\sum ^{\infty }_{n=0}(-1)^nq^{9n^2+15n+6}\right) . \end{aligned}$$

From the above congruence, we arrive at

$$\begin{aligned} \sum ^\infty _{n=0}d(3n+2)q^n=\frac{1}{2}\sum ^{\infty }_{n=0}(-1)^nq^{3n^2+3n}. \end{aligned}$$
(3.4)

In view of (3.4), we derive that

$$\begin{aligned} d\left( 3\left( 2n+1\right) +2\right) =d(6n+5)\equiv 0\pmod 3,\\ d\left( 3\left( 3n+1\right) +2\right) =d(9n+5)\equiv 0\pmod 3,\\ d\left( 3\left( 3n+2\right) +2\right) =d(9n+8)\equiv 0\pmod 3. \end{aligned}$$

Proof of Theorem 1.5

By means of (3.4), we derive that for any odd prime p,

$$\begin{aligned} \sum ^{\infty }_{n=0}d\left( 3\left( 3n\right) +2\right) q^n&=\sum ^{\infty }_{n=0}d\left( 9n+2\right) q^n\\&\equiv \frac{1}{2}\sum _{n=0}^{\infty }(-1)^{n}q^{n(n+1)}\pmod 3\\&=\frac{1}{2}\sum _{k=0}^{p-1}\sum _{n=0}^{\infty }(-1)^{n+k}q^{(pn+k)(pn+k+1)}\\&=\frac{1}{2}\sum _{k=0}^{\frac{p-3}{2}}q^{k^2+k}\sum _{n=0}^{\infty }(-1)^{n+k}q^{p^{2}n^{2}+(2k+1)pn} \\ {}&\quad +\frac{1}{2}(-1)^{\frac{p-1}{2}}q^{\frac{p^{2}-1}{4}}\sum _{n=0}^{\infty }(-1)^nq^{p^{2}n(n+1)} \\&\quad +\frac{1}{2}\sum _{k=\frac{p+1}{2}}^{p-1}q^{k^2+k}\sum _{n=0}^{\infty }(-1)^{n+k}q^{p^{2}n^{2}+(2k+1)pn}. \end{aligned}$$

Notice that for any integer \(0 \le k\le p-1\),

$$\begin{aligned} k^{2}+k\equiv \frac{p^{2}-1}{4} \pmod p \end{aligned}$$

if and only if \(k=(p-1)/2\). Thus,

$$\begin{aligned} \sum ^{\infty }_{n=0}d\left( 9\left( pn+\frac{p^2-1}{4}\right) +2\right) q^n&=\sum ^{\infty }_{n=0}d\left( 9pn+\frac{9p^2-1}{4}\right) q^n\nonumber \\&\equiv \frac{1}{2}(-1)^{\frac{p-1}{2}}\sum ^{\infty }_{n=0}(-1)^nq^{\frac{pn(n+1)}{2}}\pmod 3. \end{aligned}$$
(3.5)

Since there are no terms on the right of (3.5) in which the powers of q are congruent to \(1, 2,\cdots , p-1\) modulo p,

$$\begin{aligned} d\left( 9p\left( pn+i\right) +\frac{9p^2-1}{4}\right) \equiv 0\pmod 3, \end{aligned}$$

for \(i=1,2,\cdots ,p-1\). We complete the proof. \(\square \)

Remark. After the completion of the first version of this article, we learned from Prof. Dazhao Tang that Theorem 1.3 is one special case of Entry 6.3.7 in book “Ramanujan’s Lost Notebook Part II”.