1 Introduction
A partition
$\pi $
of a positive integer n is a finite weakly decreasing sequence of positive integers
$\pi _1\geq \pi _2\geq \cdots \geq \pi _r$
such that
$\sum _{i=1}^r\pi _i=n$
. The
$\pi _i$
are called the parts of the partition
$\pi $
. Let
$p(n)$
denote the number of partitions of n with the convention that
$p(0)=1$
. The generating function of
$p(n)$
, derived by Euler, is given by

where, here and throughout this paper, we always assume that q is a complex number such that
$|q|<1$
and adopt the customary notation:

In 1919, Ramanujan discovered three celebrated congruences for the partition function
$p(n)$
(see [Reference Berndt and Ono4]), which were later confirmed by Atkin [Reference Atkin2] and Watson [Reference Watson15]: for any
$n\geq 0$
and
$\alpha \geq 1$
,



where
$\delta _{p,\alpha }$
is the least positive integer satisfying
$24\delta _{p,\alpha }\equiv 1\pmod {p^{\alpha }}$
with
${p\in \{5,7,11\}}$
. Since then, congruence properties for various partition functions have been a hot topic in the theory of partitions and have motivated a large amount of research.
Another ingredient of the theory of partitions is the study of partition identities. In 1748, Euler [Reference Euler7] proved the most well-known partition theorem which states that there are as many partitions of n into distinct parts as into odd parts. In terms of the generating function,

where
$Q(n)$
denotes the number of partitions of n into distinct parts. According to Euler’s pentagonal number theorem [Reference Andrews and Berndt1, page 17, (1.4.11)],

we find that almost all values of
$Q(n)$
are even, that is,

Indeed,
$Q(n)$
is odd if and only if n is a generalised pentagonal number. Motivated by (1.1)–(1.5), many scholars subsequently investigated congruence properties and arithmetic density properties of
$Q(n)$
. For instance, in 1997, Gordon and Ono [Reference Gordon and Ono8] proved the striking result that for any positive integer m,
$Q(n)$
is divisible by
$2^m$
for almost all nonnegative integers n, that is,

The identity (1.6) is a powerful result on the arithmetic properties of
$Q(n)$
. However, it is not a constructive result and the theory of modular forms used in the proof of (1.6) cannot be applied to derive the explicit congruences enjoyed by
$Q(n)$
. Therefore, it is still of interest to find explicit congruences for
$Q(n)$
.
In a recent paper, Merca [Reference Merca9] derived some congruences modulo
$4$
and
$8$
for
$Q(n)$
by using Smoot’s Mathematica implementation [Reference Smoot13] of Radu’s algorithm [Reference Radu12] on Ramanujan–Kolberg identities for partition functions. At the end of his paper, Merca posed the following conjecture on congruences modulo powers of 2 for
$Q(n)$
.
Conjecture 1.1 (Merca [Reference Merca9], Conjecture).
Let
$(p,k)\in S$
. For any
$n\not \equiv 0\pmod {p}$
,

where

In this paper, we prove the following result.
Theorem 1.2. Let S be defined as in (1.7). Then for any
$(p,k)\in S$
,

where
$c_p$
is given in Table 1.
Table 1 A table of values of
$c_p$
.

As an immediate consequence of (1.8), we obtain the following congruences and internal congruences enjoyed by
$Q(n)$
, which confirms Conjecture 1.1.
Corollary 1.3. Let S be defined as in (1.7). Then for any
$(p,k)\in S$
and
$1\leq i\leq p-1$
,

Moreover, for any
$n\geq 0$
,

where
$c_p$
is given in Table 1.
The following theorem shows that there are an infinite family of congruence relations of the form (1.8) satisfied by
$Q(n)$
.
Theorem 1.4. Let
$p\geq 5$
be a prime number. If
$\big(\frac{-24}{p}\big)=-1$
, then

where
$\big (\frac {\cdot }{p}\big )$
is the Legendre symbol and

The rest of this paper is organised as follows. In Section 2, we collect some notation and terminology on modular forms. The proof of Theorem 1.2 is presented in Section 3 and that of Theorem 1.4 in Section 4. Finally, we pose a conjecture on congruence relations for
$Q(n)$
modulo
$4$
which strengthens both (1.9) and a result of Merca.
2 Preliminaries
We first recall some terminology from the theory of modular forms. The full modular group is given by

and for a positive integer N, the congruence subgroup
$\Gamma _0(N)$
is defined by

Let
$\gamma $
be the matrix
$(\begin {smallmatrix}a &b\\ c &d\end {smallmatrix})$
from now on. Then
$\gamma $
acts on
$\tau \in \mathbb {C}$
by the linear fractional transformation

Let N, k be positive integers and
$\mathbb {H}=\{\tau \in \mathbb {C}\colon \mathrm {Im}(\tau )>0\}$
. A holomorphic function
$f\colon \mathbb {H}\rightarrow \mathbb {C}$
is called a modular function of weight k for
$\Gamma _0(N)$
if it satisfies the following two conditions:
-
(1) for all
$\gamma \in \Gamma _0(N)$ ,
$f(\gamma \tau )=(c\tau +d)^kf(\tau )$ ;
-
(2) for any
$\gamma \in \Gamma $ ,
$(c\tau +d)^{-k}f(\gamma \tau )$ has a Fourier expansion of the form
$$ \begin{align*} (c\tau+d)^{-k}f(\gamma\tau)=\sum_{n=n_{\gamma}}^{\infty} a(n)q_{w_{\gamma}}^n, \end{align*} $$
where
$a(n_{\gamma })\neq 0$ ,
$q_{w_{\gamma }}=e^{2\pi i\tau /w_{\gamma }}$ and
$w_{\gamma }={N}/{\gcd (c^2, N)}$ .
In particular, if
$n_{\gamma } \geq 0$
for all
$\gamma \in \Gamma $
, then we call f a modular form of weight k for
$\Gamma _0(N)$
. A modular function with weight 0 for
$\Gamma _0(N)$
is referred to as a modular function for
$\Gamma _0(N)$
. For a modular function
$f(\tau )$
of weight k with respect to
$\Gamma _0(N)$
, the order of
$f(\tau )$
at the cusp
$a/c\in \mathbb {Q}\cup \{\infty \}$
is defined by

for some
$\gamma \in \Gamma $
such that
$\gamma \infty =a/c$
;
$\mathrm {ord}_{a/c}(f)$
is well defined (see [Reference Diamond and Shurman6, page 72]).
Radu [Reference Radu12] developed the Ramanujan–Kolberg algorithm to derive the Ramanujan– Kolberg identities on a class of partition functions defined in terms of eta-quotients using modular functions for
$\Gamma _0(N)$
(see [Reference Paule, Radu, Beveridge, Griggs, Hogben, Musiker and Tetali11]). Smoot [Reference Smoot13] developed a Mathematica package
$\mathtt {RaduRK}$
to implement Radu’s algorithm.
Let the partition function
$a(n)$
be defined by

where M,
$\delta $
are positive integers and
$r_{\delta }$
are integers. For any
$m\geq 1$
and
$0\leq t\leq m-1$
, Radu [Reference Radu12] defined

where

and gave a criterion for a function involving
$g_{m,t}(\tau )$
to be a modular function with respect to
$\Gamma _0(N)$
, where N satisfies the following conditions, with
$\kappa =\gcd (1-m^2, 24)$
:
-
(1) for every prime p,
$p \mid m$ implies
$p \mid N$ ;
-
(2) for every
$\delta $ dividing M with
$r_{\delta }\neq 0$ ,
$\delta \mid M$ implies
$\delta \mid mN$ ;
-
(3)
$\kappa mN^2\sum _{\delta |M}{r_{\delta }}/{\delta }\equiv 0\pmod {24}$ ;
-
(4)
$\kappa N \sum _{\delta |M} r_{\delta } \equiv 0\pmod {8}$ ;
-
(5)
${24 m}/{\gcd (\kappa (-24 t-\sum _{\delta |M}\delta r_{\delta }), 24 m)} \mid N ;$
-
(6) if
$2 \mid m$ , then
$\kappa N\equiv 0\pmod {4}$ and
$8 \mid Ns$ , or
$2 \mid s$ and
$8 \mid N(1-j)$ , where
$\prod _{\delta |M} \delta ^{|r_{\delta }|}=2^sj$ and
$j, s\in \mathbb {Z}$ with j odd.
Given a positive integer n and an integer x, we denote by
$[x]_n$
the residue class of x modulo n. Let

Define the set

Recall that the Dedekind eta-function
$\eta (\tau )$
is defined by

where
$q=e^{2\pi i \tau }$
and
$\tau \in \mathbb {H}$
.
Theorem 2.1 [Reference Radu12, Theorem 45].
For a partition function
$a(n)$
defined as in (2.1), and integers
$m\geq 1, 0\leq t\leq m-1$
, suppose that N is a positive integer satisfying the conditions (1)–(6). Let

where
$s_{\delta }$
are integers. Then
$F(\tau )$
is a modular function for
$\Gamma _0(N)$
if and only if the
$s_{\delta }$
satisfy the following conditions:
-
(1)
$|P_m(t)| \sum _{\delta |M}r_{\delta }+\sum _{\delta |N} s_{\delta } =0;$
-
(2)
$\sum _{t'\in P_m(t)}{(1-m^2)(24t'+\sum _{\delta |M}\delta r_{\delta })}/{m} +|P_m(t)|m\sum _{\delta |M}\delta r_{\delta }+\sum _{\delta |N}\delta s_{\delta }\equiv 0\pmod {24};$
-
(3)
$|P_m(t)|mN\sum _{\delta |M}{r_{\delta }}/{\delta }+\sum _{\delta |N} ({N}/{\delta })s_{\delta } \equiv 0\pmod {24};$
-
(4)
${(\prod _{\delta |M}(m\delta )^{|r_{\delta }|})}^{|P_{m}(t)|}\prod _{\delta |N}\delta ^{|s_{\delta }|}$ is a square.
Radu [Reference Radu12, Theorem 47] also gave lower bounds for the orders of
$F(\tau )$
at cusps of
$\Gamma _0(N)$
.
Theorem 2.2. For a partition function
$a(n)$
defined as in (2.1) and integers
$m\geq 1$
,
$0\leq t\leq m-1$
, let

be a modular function for
$\Gamma _0(N)$
, where
$s_{\delta }$
are integers and N satisfies the conditions (1)–(6). Let
$\{s_1, s_2,\ldots ,s_{\epsilon }\}$
be a complete set of inequivalent cusps of
$\Gamma _0(N)$
and, for
$1\leq i \leq \epsilon $
, let
$\gamma _i\in \Gamma $
be such that
$\gamma _i\infty = s_i$
. Then

where

and

The following theorem of Sturm [Reference Sturm14, Theorem 1] plays an important role in proving congruences using the theory of modular forms.
Theorem 2.3. Let k be an integer and
$g(\tau )=\sum _{n=0}^{\infty } c(n)q^n$
a modular form of weight k for
$\Gamma _0(N)$
. For any given positive integer u, if
$c(n)\equiv 0\pmod {u}$
holds for all
$n\leq ({kN}/{12})\prod _{p|N, \, p\mathrm {~prime}}{(1+{1}/{p})}$
, then
$c(n)\equiv 0\pmod {u}$
holds for any
$n\geq 0$
.
3 Proof of Theorem 1.2
This section is devoted to the proof of Theorem 1.2. The following lemma plays a vital role in the proof of Theorem 1.2.
Lemma 3.1. Let
$p$
be a prime with
$p\ge5$
and define
$k_1 = \lceil(p^2-1)/48p\rceil$
and
${k_2 = \lceil(p^2-1)/48p^2\rceil}$
. Then for any constant c,

is a modular form of weight
$12k_1+4k_2$
for
$\Gamma _0(2p)$
.
Proof. Recall that the generating function of
$Q(n)$
is

Taking
$M=2$
,
$(r_1, r_2)=(-1,1)$
,
$m=p$
,
$t=(p^2-1)/24$
in Theorem 2.1, one can find that
$N=2p$
satisfies the conditions (1)–(6), and for
$(s_1, s_2, s_p, s_{2p})=(0,0,1, -1)$
,

is a modular function for
$\Gamma _0(2p)$
.
By Theorem 2.2, we derive lower bounds for the orders of
$F(\tau )$
at the cusps of
$\Gamma _0(2p)$
:

which implies that

By [Reference Ono10, Theorems 1.64 and 1.65], one easily shows

are modular forms with weight 12 and 4 for
$\Gamma _0(2p)$
, respectively, and the orders at the cusps of
$\Gamma _0(2p)$
are

Therefore, the orders of
$F^{k_1}_1(\tau )F^{k_2}_2(\tau )F(\tau )$
at all cusps of
$\Gamma _0(2p)$
are nonnegative, and so
$F^{k_1}_1(\tau )F^{k_2}_2(\tau )F(\tau )$
is a modular form with weight
$12k_2+4k_2$
for
$\Gamma _0(2p)$
. This completes the proof.
Proof of Theorem 1.2.
Fix
$k\ge 1$
. By Lemma 3.1 and Sturm’s theorem, to prove

we only need to check that the coefficients of the first
$l_p=(p+1)(3k_1+k_2)$
terms of the expansion of

are congruent to 0 modulo
$2^k$
. Here,
$k_1$
and
$k_2$
are defined in Lemma 3.1 and the corresponding
$l_p$
are displayed in Table 2. This information allows us to do the computations to complete the proof of Theorem 1.2.
Table 2 A table of values of
$l_p$
.

4 Proof of Theorem 1.4
In this section, we give a proof of Theorem 1.4. Before starting the proof, we need to introduce Ramanujan’s theta function, given by

where the last identity in (4.1) is the celebrated Jacobi triple product [Reference Andrews and Berndt1, page 17, (1.4.8)]. Two important cases of
$f(a,b)$
are

Replacing q by
$-q$
in (4.2) yields

The following p-dissections for
$\varphi (-q)$
and
$f(-q)$
play an important role in the proof of Theorem 1.4.
Lemma 4.1. Let
$p\geq 5$
be a prime number. Then


where
$(\pm p-1)/6$
is defined as in (1.10). Further, for
$-(p-1)/2\leq k\leq (p-1)/2$
and
$k\neq (\pm p-1)/6$
,

Proof. The identity (4.3) follows immediately from [Reference Berndt3, page 49]. The identity (4.4) appears in [Reference Cui and Gu5, Theorem 2.2].
Proof of Theorem 1.4.
From (1.4), we find that

For a prime
$p\geq 5$
,
$0\leq j\leq (p-1)/2$
,
$-(p-1)/2\leq k\leq (p-1)/2$
, assume that

which implies that

Since
$\big(\frac{-24}{p}\big)=-1$
, we get
$j=0$
and
$k=(\pm p-1)/6$
. Substituting (4.3) and (4.4) into (4.5), we find that

where we have used (4.5) in the last congruence. The congruence (1.9) follows. This completes the proof of Theorem 1.4.
5 Concluding remarks
One can use Lemma 3.1 to establish congruence relations satisfied by
$Q(n)$
similar to (1.8) for other primes p. For example,

However, the corresponding bound
$l_p$
will become much larger as p increases.
Merca [Reference Merca9] proved the following infinite family of congruences modulo
$4$
for
$Q(n)$
.
Theorem 5.1. Let
$p\geq 5$
be a prime number such that
$p\not \equiv 1\pmod {24}$
. Then for any
$n\not \equiv 0\pmod {p}$
,

The congruence (1.8) together with numerical evidence suggests the following conjecture, which contains (1.9) and (5.1) as special cases.
Conjecture 5.2. Let
$p\geq 5$
be a prime number such that
$p\not \equiv 1\pmod {24}$
. Then

where
$c_p=-1$
or
$1$
.