Hostname: page-component-7bb8b95d7b-2h6rp Total loading time: 0 Render date: 2024-10-06T23:18:35.117Z Has data issue: false hasContentIssue false

ON SOME CONGRUENCES INVOLVING CENTRAL BINOMIAL COEFFICIENTS

Published online by Cambridge University Press:  08 March 2024

GUO-SHUAI MAO*
Affiliation:
Department of Mathematics, Nanjing University of Information Science and Technology, Nanjing 210044, PR China
Rights & Permissions [Opens in a new window]

Abstract

We prove the following conjecture of Z.-W. Sun [‘On congruences related to central binomial coefficients’, J. Number Theory 13(11) (2011), 2219–2238]. Let p be an odd prime. Then

$$ \begin{align*} \sum_{k=1}^{p-1}\frac{\binom{2k}k}{k2^k}\equiv-\frac12H_{{(p-1)}/2}+\frac7{16}p^2B_{p-3}\pmod{p^3}, \end{align*} $$

where $H_n$ is the nth harmonic number and $B_n$ is the nth Bernoulli number. In addition, we evaluate $\sum _{k=0}^{p-1}(ak+b)\binom {2k}k/2^k$ modulo $p^3$ for any p-adic integers $a, b$.

Type
Research Article
Copyright
© The Author(s), 2024. Published by Cambridge University Press on behalf of Australian Mathematical Publishing Association Inc.

1. Introduction

In 2006, Adamchuk [Reference Adamchuk1] proposed the following congruence involving central binomial coefficients: for any prime $p\equiv 1\pmod {3}$ ,

$$ \begin{align*} \sum_{k=1}^{2(p-1)/3}\binom{2k}k\equiv0\pmod{p^2}. \end{align*} $$

This conjecture was confirmed by the author [Reference Mao6]. Many researchers studied congruences for sums of binomial coefficients (see, for instance, [Reference Mao and Cao7, Reference Pan and Sun10, Reference Sun14, Reference Sun and Tauraso17]). Pan and Sun [Reference Pan and Sun10] used a combinatorial identity to deduce that if p is a prime, then

$$ \begin{align*} \sum_{k=0}^{p-1}\binom{2k}{k+d}\equiv\bigg(\frac{p-d}3\bigg)\pmod{p} \quad \text{for } d=0,1,\ldots,p, \end{align*} $$

where $(\frac {\cdot }{\cdot })$ is the Jacobi symbol. They also showed that for any odd prime p,

$$ \begin{align*} \sum_{k=0}^{p-1}(3k+1)\binom{2k}k\equiv-\bigg(\frac{p}3\bigg)\pmod{p}. \end{align*} $$

In 2018, Apagodu [Reference Apagodu2] conjectured that for any odd prime p,

$$ \begin{align*} \sum_{k=0}^{p-1}(5k+1)\binom{4k}{2k}\equiv-\bigg(\frac{p}3\bigg)\pmod{p}. \end{align*} $$

Mao and Cao [Reference Mao and Cao7] confirmed this conjecture and also showed that for any odd prime p,

$$ \begin{align*} \sum_{k=0}^{p-1}(15k+5)\binom{4k}{2k}\equiv-\bigg(\frac{p}5\bigg)\pmod{p}. \end{align*} $$

The Bernoulli numbers $\{B_n\}$ and the Bernoulli polynomials $\{B_n(x)\}$ are given by

$$ \begin{align*} \frac{x}{e^x-1}=\sum_{n=0}^\infty B_n\frac{x^n}{n!}\quad (0<|x|<2\pi),\quad B_n(x)=\sum_{k=0}^n\binom{n}kB_kx^{n-k}\quad (n\in \mathbb{N}). \end{align*} $$

Mattarei and Tauraso [Reference Mattarei and Tauraso8] deduced that for any prime $p>3$ ,

$$ \begin{align*} \sum_{k=0}^{p-1}\binom{2k}k\equiv\bigg(\frac{p}3\bigg)-\frac13p^2B_{p-2}\bigg(\frac13\bigg)\pmod{p^3}. \end{align*} $$

Sun [Reference Sun13] obtained many congruences involving central binomial coefficients and proposed many conjectures. Our first goal is to prove a conjecture of Sun ([Reference Sun13, Conjecture 5.2] or [Reference Sun16, Conjecture 6]).

Theorem 1.1. Let p be an odd prime. Then

$$ \begin{align*} \sum_{k=1}^{p-1}\frac{\binom{2k}k}{k2^k}\equiv -\frac12H_{{(p-1)}/2}+\frac7{16}p^2B_{p-3}\pmod{p^3}. \end{align*} $$

Sun [Reference Sun14] proved that for any odd prime p,

(1.1) $$ \begin{align} \sum_{k=0}^{p-1}\frac{\binom{2k}k}{2^k}\equiv(-1)^{{(p-1)}/2}-p^2E_{p-3}\pmod{p^3}, \end{align} $$

where the Euler numbers $\{E_n\}$ are given by

$$ \begin{align*} E_0=1\quad \text{and}\quad E_{2n}=-\sum_{k=1}^{n}\binom{2n}{2k}E_{2n-2k}\quad (n\geq1). \end{align*} $$

Our second goal is to generalise (1.1) as follows.

Theorem 1.2. For any odd prime p and p-adic integers $a, b$ ,

$$ \begin{align*} \sum_{k=0}^{p-1}(ak+b)\frac{\binom{2k}k}{2^k}\equiv(-1)^{{(p-1)}/2}(b-a)+ap(2-2^{p-1})-(b-a)p^2E_{p-3}\pmod{p^3}. \end{align*} $$

Remark 1.3. If we set $a=0, b=1$ , we obtain (1.1), and with $a=b=1$ , we obtain

(1.2) $$ \begin{align} \sum_{k=0}^{p-1}(k+1)\frac{\binom{2k}k}{2^k}\equiv p(2-2^{p-1})\pmod{p^3}. \end{align} $$

Finally, we prove the following result.

Theorem 1.4. Let p be an odd prime. Then

$$ \begin{align*} \sum_{k=0}^{p-1}(k+1)^2\frac{\binom{2k}k}{2^k}\equiv(-1)^{{(p-1)}/2}+p(2^{p-1}-2)+p^2-p^2E_{p-3}\pmod{p^3}. \end{align*} $$

Remark 1.5. Combining (1.1), (1.2) and Theorem 1.4,

$$ \begin{align*} \sum_{k=0}^{p-1}(k^2+3k+1)\frac{\binom{2k}k}{2^k}\equiv p^2\pmod{p^3}. \end{align*} $$

Combining Theorem 1.2 with $a=2, b=1$ and Theorem 1.4,

$$ \begin{align*} \sum_{k=0}^{p-1}k^2\frac{\binom{2k}k}{2^k}\equiv2(-1)^{{(p-1)}/2}+3p(2^{p-1}-2)+p^2-2p^2E_{p-3}\pmod{p^3}. \end{align*} $$

Consequently, we can evaluate $\sum _{k=0}^{p-1}(ak^2+bk+c){\binom {2k}k}/{2^k}$ modulo $p^3$ .

We prove Theorem 1.1 in Section 2. Sections 3 and 4 are devoted to proving Theorems 1.2 and 1.4. Our proofs make use of some congruences involving harmonic numbers and combinatorial identities which can be found and proved by the package Sigma [Reference Schneider11] via the software Mathematica and some known congruences.

2. Proof of Theorem 1.1

For $n,m\in \{1,2,3,\ldots \}$ , define the harmonic numbers of order m by

$$ \begin{align*} H_n^{(m)}:=\sum_{1\leq k\leq n}\frac1{k^m},\quad H_0^{(m)}:=0. \end{align*} $$

When $m=1$ , these numbers are the classical harmonic numbers.

To prove Theorem 1.1, we need some lemmas and identities. For each positive integer n,

(2.1) $$ \begin{align} \sum_{k=0}^{\lfloor n/2\rfloor}\binom{2k}k\binom{n}{2k}2^{n-2k} &=\binom{2n}n, \end{align} $$
(2.2) $$ \begin{align} \sum_{k=1}^n\frac{(-1)^k}{k}\binom{n}k(H_{k}^2-H_k^{(2)}) &=2\sum_{k=1}^n\frac{H_{k-1}}{k^2}, \end{align} $$
(2.3) $$ \begin{align} \qquad\sum_{k=1}^n\frac{(-1)^k}{k}\binom{n}k &=-H_n, \end{align} $$
(2.4) $$ \begin{align} \quad\ \kern1pt\sum_{k=1}^n\frac{(-1)^k}{k}\binom{n}kH_k &=-H_n^{(2)}. \end{align} $$

Remark 2.1. Equation (2.1) follows from [Reference Gould3, (3.99)]; (2.2) can be proved by induction on n; (2.3) and (2.4) follow from [Reference Gould3, (1.45)] and an identity of Hernández [Reference Hernández4] (or [Reference Sun15, (3.4)]), respectively.

Lemma 2.2 [Reference Sun12, Theorems 5.1 and 5.2].

Let $p>3$ be a prime. Then

$$ \begin{gather*} H_{p-1}\equiv-\tfrac13p^2B_{p-3}\pmod{p^3},\quad H_{{(p-1)}/2}^{(3)}\equiv-2B_{p-3}\pmod p,\\ H_{{(p-1)}/2}\equiv-2q_p(2)+pq_p(2)^2\pmod{p^2},\quad H_{{(p-1)}/2}^{(2)}\equiv\tfrac73pB_{p-3}\pmod{p^2}. \end{gather*} $$

Lemma 2.3 [Reference Sun15, Lemma 4.2].

Let $p=2n+1$ be an odd prime and $k\in \{0,\ldots ,n\}$ . Then

$$ \begin{align*} \frac{\binom{n}k(-4)^k}{\binom{2k}k}\equiv1-p\sum_{j=1}^k\frac1{2j-1}+\frac{p^2}2\bigg(\sum_{j=1}^k\frac1{2j-1}\bigg)^2-\frac{p^2}2\sum_{j=1}^k\frac1{(2j-1)^2}\pmod{p^3}. \end{align*} $$

Lemma 2.4. Let $p=2n+1$ be an odd prime and $k\in \{0,\ldots ,n\}$ . Then

$$ \begin{align*} \frac{\binom{2k}k\binom{p-1}{2k}}{4^k}\equiv\binom{n}k(-1)^k\bigg(1-\frac{p}2H_k+\frac{p^2}8(H_k^2-H_k^{(2)})\bigg)\pmod{p^3}. \end{align*} $$

Proof. It is easy to check that

$$ \begin{align*} \binom{p-1}{2k}&=\prod_{j=1}^{2k}\bigg(\frac{p-j}j\bigg)=\prod_{j=1}^{2k}\bigg(1-\frac{p}j\bigg)\\ &\equiv1-pH_{2k}+\frac{p^2}2(H_{2k}^2-H_{2k}^{(2)})\pmod{p^3}. \end{align*} $$

By Lemma 2.3, modulo $p^3$ ,

$$ \begin{align*} \frac{\binom{2k}k}{4^k} &\equiv \frac{\binom{n}k(-1)^k}{1-p(H_{2k}-\frac12H_k)+\frac12{p^2}(H_{2k}-\frac12H_k)^2-\frac12{p^2}(H_{2k}^{(2)}-\frac14H_k^{(2)})}\\ &\equiv\binom{n}k(-1)^k\bigg(1+p\bigg(H_{2k}-\frac12H_k\bigg)+\frac{p^2}2\bigg(H_{2k}-\frac12H_k\bigg)^2+\frac{p^2}2\bigg(H_{2k}^{(2)}-\frac14H_k^{(2)}\bigg)\bigg). \end{align*} $$

From this, we immediately obtain the desired result.

Proof of Theorem 1.1.

The cases $p=3, 5$ can be checked directly. We will assume $p>5$ from now on. By (2.1),

$$ \begin{align*} \sum_{k=1}^{p-1}\frac{\binom{2k}k}{k2^k}=\sum_{k=1}^{p-1}\frac1{k2^k}\sum_{j=0}^{\lfloor k/2\rfloor}\binom{2j}j\binom{k}{2j}2^{k-2j}=H_{p-1}+\sum_{j=1}^{{(p-1)}/2}\frac{\binom{2j}j}{4^{\,j}}\sum_{k=2j}^{p-1}\frac{\binom{k}{2j}}k. \end{align*} $$

By Sigma [Reference Schneider11], we find the following identity which can be proved by induction on n:

$$ \begin{align*} \sum_{k=2j}^{n-1}\frac1k\binom{k}{2j}=\frac1{2j}\binom{n-1}{2j}. \end{align*} $$

This, with Lemma 2.4, yields

$$ \begin{align*} \sum_{k=1}^{p-1}\frac{\binom{2k}k}{k2^k}-H_{p-1}&=\frac12\sum_{j=1}^{{(p-1)}/2}\frac{\binom{2j}j\binom{p-1}{2j}}{j4^{\,j}}\\ &\equiv\frac12\sum_{j=1}^{{(p-1)}/2}\frac{(-1)^{\,j}}j\binom{\frac12{(p-1)}}j\bigg(1-\frac{p}2H_j+\frac{p^2}8(H_j^2-H_j^{(2)})\bigg)\pmod{p^3}. \end{align*} $$

Substituting $n=(p-1)/2$ into (2.2)–(2.4),

$$ \begin{align*} \sum_{k=1}^{p-1}\frac{\binom{2k}k}{k2^k}-H_{p-1}\equiv\frac12\bigg(-H_{{(p-1)}/2}+\frac{p}2H_{{(p-1)}/2}^{(2)}+\frac{p^2}4\sum_{k=1}^{{(p-1)}/2}\frac{H_{k-1}}{k^2}\bigg)\pmod{p^3}. \end{align*} $$

In view of [Reference Mao5, Lemma 3.2] and Lemma 2.2,

$$ \begin{align*} \sum_{k=1}^{{(p-1)}/2}\frac{H_{k-1}}{k^2}=\sum_{k=1}^{{(p-1)}/2}\frac{H_k}{k^2}-H_{{(p-1)}/2}^{(3)}\equiv\frac32B_{p-3}\pmod p. \end{align*} $$

This, with Lemma 2.2, yields the desired result.

3. Proof of Theorem 1.2

Lemma 3.1. For any prime $p>3$ ,

$$ \begin{align*} \sum_{k=0}^{{(p-3)}/2}\frac{\binom{{(p-1)/2}}k(-1)^k}{(2k+1)(2k+2)}\equiv p-1+(-1)^{{(p-1)}/2}(1-q_p(2)-p+pq_p(2)^2)\pmod{p^2}, \end{align*} $$

where $q_p(2)=(2^{p-1}-1)/p$ stands for the Fermat quotient.

Proof. By Sigma, we find the following identity which can be proved by induction on n:

$$ \begin{align*} \sum_{k=0}^{n-1}\frac{\binom{n}k(-1)^k}{(2k+1)(2k+2)}=-\frac1{2n+2}-\frac{(-1)^n}{(2n+1)(2n+2)}+\frac{4^n}{(2n+1)\binom{2n}n}. \end{align*} $$

Setting $n=(p-1)/2$ ,

$$ \begin{align*} \sum_{k=0}^{{(p-3)}/2}\frac{\binom{{(p-1)/2}}k(-1)^k}{(2k+1)(2k+2)}=-\frac1{p+1}-\frac{(-1)^{{(p-1)}/2}}{p(p+1)}+\frac{2^{p-1}}{p\binom{p-1}{{(p-1)/2}}}. \end{align*} $$

The well-known Morley’s congruence [Reference Morley9] gives

(3.1) $$ \begin{align} \binom{p-1}{(p-1)/2}\equiv(-1)^{(p-1)/2}4^{p-1}\pmod{p^3}\quad \text{for } p>3. \end{align} $$

This, with $2^{p-1}=1+pq_p(2)$ , yields

$$ \begin{align*} \sum_{k=0}^{{(p-3)}/2}\frac{\binom{{(p-1)}/2}k(-1)^k}{(2k+1)(2k+2)}&\equiv-\frac1{p+1}+\frac{(-1)^{{(p-1)}/2}}{p}\bigg(\frac1{2^{p-1}}-\frac1{p+1}\bigg)\\ &\equiv p-1+(-1)^{{(p-1)}/2}\frac{1-q_p(2)}{2^{p-1}(p+1)}\\ &\equiv p-1+(-1)^{{(p-1)}/2}(1-q_p(2)-p+pq^2_p(2))\pmod{p^2}. \end{align*} $$

This proves Lemma 3.1.

Lemma 3.2. Let $p>3$ be a prime. Then

$$ \begin{align*} \sum_{k=0}^{{(p-3)}/2}\frac{\binom{{(p-1)}/2}kH_k(-1)^k}{(2k+1)(2k+2)}&\equiv-2q_p(2)+2E_{p-3}+2(-1)^{{(p-1)}/2}(q_p(2)^2-q_p(2))\pmod p,\\ \sum_{k=0}^{{(p-3)}/2}\frac{\binom{{(p-1)}/2}kkH_k(-1)^k}{(2k+1)(2k+2)}&\equiv2q_p(2)-E_{p-3}+(-1)^{{(p-1)}/2}(2q_p(2)-q_p(2)^2)\pmod p. \end{align*} $$

Proof. By Sigma, we find the following identity which can be proved by induction on n,

$$ \begin{align*} \sum_{k=0}^{n-1}\frac{\binom{n}kH_k(-1)^k}{(2k+1)(2k+2)}=\frac{H_n}{2n+2}-\frac{(-1)^nH_n}{(2n+1)(2n+2)}-\frac{4^n}{(2n+1)\binom{2n}n}\sum_{k=1}^n\frac{\binom{2k}k}{k4^k}. \end{align*} $$

Substituting $n=(p-1)/2$ into the above identity and by (3.1),

$$ \begin{align*} \sum_{k=0}^{{(p-3)}/2}\frac{\binom{{(p-1)}/2}kH_k(-1)^k}{(2k+1)(2k+2)} & \equiv\frac{H_{{(p-1)}/2}}{p+1}-\frac{(-1)^{{(p-1)}/2}H_{{(p-1)}/2}}{p(p+1)} \\ &\quad -\frac{(-1)^{{(p-1)}/2}}{p2^{p-1}}\sum_{k=1}^{{(p-1)}/2}\frac{\binom{2k}k}{k4^k}\pmod p. \end{align*} $$

Tauraso [Reference Tauraso18] and Sun [Reference Sun14, (1.5)] respectively proved

(3.2) $$ \begin{align} \sum_{k=1}^{p-1}\frac{\binom{2k}k}{k4^k}&\equiv-H_{(p-1)/2}\pmod{p^3}, \end{align} $$
(3.3) $$ \begin{align} \sum_{k=\frac{p+1}2}^{p-1}\frac{\binom{2k}k}{k4^k}&\equiv(-1)^{{(p-1)}/2}2pE_{p-3}\pmod{p^2}. \end{align} $$

These, with Lemma 2.2, yield

$$ \begin{align*} \sum_{k=0}^{{(p-3)}/2}\frac{\binom{{(p-1)}/2}kH_k(-1)^k}{(2k+1)(2k+2)}\equiv-2q_p(2)+2E_{p-3}+2(-1)^{{(p-1)}/2}(q_p(2)^2-q_p(2))\pmod p. \end{align*} $$

Similarly, by Sigma, we find the following identity which can be proved by induction on n:

$$ \begin{align*} \sum_{k=0}^{n-1}\frac{\binom{n}kkH_k(-1)^k}{(2k+1)(2k+2)}=-\frac{H_n}{2n+2}-\frac{n(-1)^nH_n}{(2n+1)(2n+2)}+\frac{4^n}{2(2n+1)\binom{2n}n}\sum_{k=1}^n\frac{\binom{2k}k}{k4^k}. \end{align*} $$

Setting $n=(p-1)/2$ , and invoking (3.1), (3.2), (3.3) and Lemma 2.2,

$$ \begin{align*} \sum_{k=0}^{{(p-3)}/2}\frac{\binom{{(p-1)}/2}kkH_k(-1)^k}{(2k+1)(2k+2)}&\equiv-\frac{H_{{(p-1)}/2}}{p+1}-\frac{(p-1)(-1)^{{(p-1)}/2}H_{{(p-1)}/2}}{2p(p+1)} \\ &\quad +\frac{(-1)^{{(p-1)}/2}}{2p2^{p-1}}\sum_{k=1}^{{(p-1)}/2}\frac{\binom{2k}k}{k4^k}\\ &\equiv 2q_p(2)-E_{p-3}+(-1)^{\frac{p-1}2}(2q_p(2)-q_p(2)^2)\pmod p. \end{align*} $$

This completes the proof of Lemma 3.2.

Proof of Theorem 1.2.

We can check the case $p=3$ directly. From now on, we assume that $p>3$ . By Sigma, we find the following identity which can be proved by induction on n:

$$ \begin{align*} \sum_{k=2j}^{n-1}(ak+b)\binom{k}{2j}=\frac{an(2j+1)+2bj+2b-a}{2j+2}\binom{n}{2j+1}. \end{align*} $$

Substituting $n=p$ into this identity and using (2.1),

$$ \begin{align*} \sum_{k=0}^{p-1}(ak+b)\frac{\binom{2k}k}{2^k}&=\sum_{j=0}^{{(p-1)}/2}\frac{\binom{2j}j\binom{p}{2j+1}}{4^{\,j}}\frac{ap(2j+1)+2bj+2b-a}{2j+2}\\ &=p\sum_{j=0}^{{(p-1)}/2}\frac{\binom{2j}j\binom{p-1}{2j}}{4^{\,j}}\frac{ap(2j+1)+2bj+2b-a}{(2j+1)(2j+2)}\\ &=\frac{\binom{p-1}{{(p-1)}/2}}{2^{p-1}}(ap+b-a)+p\sum_{j=0}^{{(p-3)}/2}\frac{\binom{2j}j\binom{p-1}{2j}}{4^{\,j}}\frac{(ap+b)(2j+1)+b-a}{(2j+1)(2j+2)}. \end{align*} $$

This, with Lemma 2.4, yields, modulo $p^3$ ,

$$ \begin{align*} &\sum_{k=0}^{p-1}(ak+b)\frac{\binom{2k}k}{2^k}-\frac{\binom{p-1}{{(p-1)}/2}}{2^{p-1}}(ap+b-a)\\ &\quad\equiv p\sum_{j=0}^{{(p-3)}/2}\binom{{(p-1)}/2}j(-1)^{\,j}\frac{(1-\frac{1}{2}p H_j)((ap+b)(2j+1)+b-a)}{(2j+1)(2j+2)}\\ &\quad\equiv p\sum_{j=0}^{{(p-3)}/2}\binom{{(p-1)}/2}j(-1)^{\,j}\frac{(ap+b)(2j+1)+b-a-\frac{1}{2}p(2b-a)H_j-bpjH_j}{(2j+1)(2j+2)}. \end{align*} $$

It is easy to check that

$$ \begin{align*} \sum_{k=0}^{n-1}\frac{\binom{n}k(-1)^k}{2k+2}=\frac1{2n+2}\sum_{k=0}^{n-1}\binom{n+1}{k+1}(-1)^k=-\frac1{2n+2}\sum_{k=1}^{n}\binom{n+1}{k}(-1)^k=\frac{1-(-1)^n}{2n+2}. \end{align*} $$

Setting $n=(p-1)/2$ ,

$$ \begin{align*} \sum_{k=0}^{{(p-3)/}2}\frac{\binom{{(p-1)}/2}k(-1)^k}{2k+2}=\frac{1-(-1)^{{(p-1)}/2}}{p+1}\equiv(1-(-1)^{{(p-1)}/2})(1-p)\pmod{p^2}. \end{align*} $$

This, with Lemmas 3.1 and 3.2, yields, modulo $p^3$ ,

$$ \begin{align*} \sum_{k=0}^{p-1}(ak+b)\frac{\binom{2k}k}{2^k} & -\frac{\binom{p-1}{{(p-1)}/2}}{2^{p-1}}(ap+b-a) \\ & \equiv pa(1-(-1)^{{(p-1)}/2})-p(b-a)(-1)^{{(p-1)}/2}q_p(2) \\ &\quad -ap^2q_p(2)(1+(-1)^{{(p-1)}/2})-p^2(b-a)E_{p-3}. \end{align*} $$

Simplifying this congruence using (3.1) and $2^{p-1}=1+pq_p(2)$ gives Theorem 1.2.

4. Proof of Theorem 1.4

Lemma 4.1. Let $p>3$ be a prime. Then

$$ \begin{gather*} p(p+1)\sum_{k=0}^{{(p-1)}/2}\frac{\binom{2k}k\binom{p-1}{2k}}{(k+1)4^k}\equiv2p-2p^2q_p(2)\pmod{p^3}. \end{gather*} $$

Proof. By Sigma, we can find and prove the identity

$$ \begin{gather*} \sum_{k=0}^n\frac{\binom{n}k(-1)^kH_k}{k+1}=-\frac{H_n}{n+1}, \end{gather*} $$

and it is easy to see that

$$ \begin{align*} \sum_{k=0}^n\frac{\binom{n}k(-1)^k}{k+1}=\frac{1}{n+1}\sum_{k=0}^n\binom{n+1}{k+1}(-1)^k=-\frac{1}{n+1}\sum_{k=1}^{n+1}\binom{n+1}{k}(-1)^k=\frac{1}{n+1}. \end{align*} $$

Substituting $n=(p-1)/2$ into these identities and using Lemmas 2.4 and 2.2,

$$ \begin{align*} &p(p+1)\sum_{k=0}^{{(p-1)}/2}\frac{\binom{2k}k\binom{p-1}{2k}}{(k+1)4^k}\equiv p(p+1)\sum_{k=0}^{{(p-1)}/2}\frac{\binom{{(p-1)}/2}k(-1)^k(1-\frac{1}{2}p H_k)}{k+1}\\ &\quad=p(p+1)\frac2{p+1}+\frac{p^2(p+1)}2\frac{2H_{{(p-1)}/2}}{p+1}=2p+p^2H_{{(p-1)}/2} \pmod{p^3}. \end{align*} $$

This proves Lemma 4.1.

Lemma 4.2. For any prime $p>3$ ,

$$ \begin{align*} \sum_{k=0}^{{(p-1)}/2}\frac{p\binom{2k}k\binom{p-1}{2k}}{(2k+3)4^k}\equiv(-1)^{{(p-1)}/2}\bigg(\frac12-\frac{3p}4+\frac{7p^2}8\bigg)+\frac{p^2}2-\frac{p^2}2E_{p-3}\pmod{p^3}. \end{align*} $$

Proof. By Sigma, we can find and prove the following identity:

$$ \begin{align*} \sum_{k=0}^n\frac{\binom{n}k(-1)^k}{2k+3}=\frac{4^n}{(2n+1)(2n+3)\binom{2n}n}. \end{align*} $$

Substituting $n=(p-1)/2$ into this identity and using Lemma 2.4,

$$ \begin{align*} \sum_{k=0}^{{(p-1)}/2}\frac{p\binom{2k}k\binom{p-1}{2k}}{(2k+3)4^k} & \equiv \frac{\binom{p-3}{{(p-3)}/2}\binom{p-1}{p-3}}{2^{p-3}}+p\sum_{k=0}^{{(p-1)}/2}\frac{\binom{{(p-1)}/2}k(-1)^k(1-\frac{1}{2}p H_k)}{2k+3} \\ &\quad -\binom{{(p-1)}/2}{{(p-3)}/2}(-1)^{{(p-3)}/2}\bigg(1-\frac{p}2H_{{(p-3)}/2}\bigg) =S_1-\frac{p}2S_2\pmod{p^3}, \end{align*} $$

where

$$ \begin{align*} S_1&=\frac{\binom{p-3}{{(p-3)}/2}\binom{p-1}{p-3}}{2^{p-3}}+\frac{1}{p+2}\frac{2^{p-1}}{\binom{p-1}{{(p-1)}/2}}-\binom{{(p-1)}/2}{{(p-3)}/2}(-1)^{{(p-3)}/2}\bigg(1-\frac{p}2H_{{(p-3)}/2}\bigg),\\ S_2&=p\sum_{k=0}^{{(p-1)}/2}\frac{\binom{{(p-1)}/2}k(-1)^kH_k}{2k+3}. \end{align*} $$

In view of (3.1) and Lemma 2.2,

$$ \begin{align*} S_1&=\frac12(p-1)^2\frac{\binom{p-1}{{(p-1)}/2}}{2^{p-1}}+\frac{(-1)^{{(p-1)}/2}}{(p+2)2^{p-1}}+\frac12(p-1)(-1)^{{(p-1)}/2}\bigg(1-\frac{p}2H_{{(p-1)}/2}+\frac{p}{p-1}\bigg)\\ &\equiv\frac{1-2p+p^2}2(1+pq_p(2))(-1)^{{(p-1)}/2}+\frac{(-1)^{{(p-1)}/2}}2\bigg(1-\frac{p}2+\frac{p^2}4\bigg) \\ &\quad \!\! \cdot(1-pq_p(2)+p^2q_p(2)^2) -\frac12(-1)^{{(p-1)}/2}\bigg(1-2p+pq_p(2)-p^2q_p(2)-\frac{p^2}2q_p(2)^2\bigg)\\ &\equiv\frac{(-1)^{{(p-1)}/2}}2\bigg(1-\frac{p}2+\frac{5p^2}4-pq_p(2)-\frac{p^2}2q_p(2)+\frac{3p^2}2q_p(2)^2\bigg)\pmod{p^3}. \end{align*} $$

By Sigma, we can find and prove the identity

$$ \begin{align*} \sum_{k=0}^{n}\frac{\binom{n}k(-1)^kH_k}{2k+3}=-\frac2{2n+3}+\frac{4^n}{(2n+1)(2n+3)\binom{2n}n}\bigg(2-\sum_{k=1}^n\frac{\binom{2k}k}{k4^k}\bigg). \end{align*} $$

Setting $n=(p-1)/2$ in this identity and using (3.1), (3.2), (3.3) and Lemma 2.2,

$$ \begin{align*} S_2&=-\frac{2p}{p+2}+\frac{1}{p+2}\frac{2^{p-1}}{\binom{p-1}{{(p-1)}/2}}\bigg(2-\sum_{k=1}^{{(p-1)}/2}\frac{\binom{2k}k}{k4^k}\bigg)\\ &\equiv-p+\frac12(-1)^{{(p-1)}/2}\bigg(1-\frac{p}2-pq_p(2)\bigg)(2-2q_p(2)+pq_p(2)^2+(-1)^{{(p-1)}/2}2pE_{p-3})\\ &\equiv(-1)^{{(p-1)}/2}\bigg(1-q_p(2)-\frac{p}2-\frac{p}2q_p(2)+\frac{3p}2q_p(2)^2\bigg)-p+pE_{p-3}\pmod{p^2}. \end{align*} $$

Hence,

$$ \begin{align*} \sum_{k=0}^{{(p-1)}/2}\frac{p\binom{2k}k\binom{p-1}{2k}}{(2k+3)4^k}\equiv(-1)^{{(p-1)}/2}\bigg(\frac12-\frac{3p}4+\frac{7p^2}8\bigg)+\frac{p^2}2-\frac{p^2}2E_{p-3}\pmod{p^3}. \end{align*} $$

This completes the proof of Lemma 4.2.

Proof of Theorem 1.4.

It is easy to check by (2.1) that

$$ \begin{align*} \sum_{k=0}^{p-1}\frac{(k+1)^2\binom{2k}k}{2^k}=\sum_{k=0}^{p-1}(k+1)^2\sum_{j=0}^{\lfloor k/2\rfloor}\binom{k}{2j}\frac{\binom{2j}j}{4^{\,j}}=\sum_{j=0}^{{(p-1)}/2}\frac{\binom{2j}j}{4^{\,j}}\sum_{k=2j}^{p-1}(k+1)^2\binom{k}{2j}. \end{align*} $$

By Sigma, we find the following identity which can be proved by induction on n:

$$ \begin{align*} \sum_{k=2j}^{n-1}(k+1)^2\binom{k}{2j}=\frac{n(n+1)(2nj+2n+2j+1)}{2(2j+1)(2j+3)}\binom{n-1}{2j}. \end{align*} $$

Substituting $n=p$ into this identity and using Lemmas 4.1 and 4.2,

$$ \begin{align*} \sum_{k=0}^{p-1}\frac{(k+1)^2\binom{2k}k}{2^k} & =\sum_{j=0}^{{(p-1)}/2}\frac{\binom{2j}j}{4^{\,j}}\frac{p(p+1)(2pj+2p+2j+1)}{2(2j+1)(2j+3)}\binom{p-1}{2j}\\ &=\sum_{j=0}^{{(p-1)}/2}\frac{\binom{2j}j\binom{p-1}{2j}}{4^{\,j}}\frac{p^2(p+1)}{2j+3}+\sum_{j=0}^{{(p-1)}/2}\frac{\binom{2j}j\binom{p-1}{2j}}{4^{\,j}}\bigg(\frac{2p(p+1)}{2j+3}-\frac{p(p+1)}{2(\,j+1)}\bigg)\\ &\equiv p^2\binom{{(p-1)}/2}{{(p-3)}/2}(-1)^{{(p-3)}/2}+3p^2\sum_{j=0}^{{(p-1)}/2}\frac{\binom{2j}j\binom{p-1}{2j}}{(2j+3)4^{\,j}} \\ &\quad +2p\sum_{j=0}^{{(p-1)}/2}\frac{\binom{2j}j\binom{p-1}{2j}}{(2j+3)4^{\,j}} -\frac{p(p+1)}2\sum_{j=0}^{{(p-1)}/2}\frac{\binom{2j}j\binom{p-1}{2j}}{(\,j+1)4^{\,j}}\\ &\equiv(-1)^{{(p-1)}/2}-p+p^2-p^2E_{p-3}+p^2q_p(2) \pmod{p^3}, \end{align*} $$

which gives the result in Theorem 1.4.

Acknowledgement

The author would like to thank the anonymous referee for helpful comments.

Footnotes

The author was funded by the National Natural Science Foundation of China (grant nos. 12001288, 12071208).

References

Adamchuk, A., ‘Comments on OEIS A066796’, The On-Line Encyclopedia of Integer Sequences (2006). Published electronically at http://oeis.org/A066796.Google Scholar
Apagodu, M., ‘Elementary proof of congruences involving sum of binomial coefficients’, Int. J. Number Theory 14 (2018), 15471557.CrossRefGoogle Scholar
Gould, H. W., Combinatorial Identities (Morgantown Printing and Binding Co., Morgantown, WV, 1972).Google Scholar
Hernández, V., ‘Solution IV of problem 10490 (a reciprocal summation identity)’, Amer. Math. Monthly 106 (1999), 589590.Google Scholar
Mao, G.-S., ‘Proof of some congruences conjectured by Z.-W. Sun’, Int. J. Number Theory 13(8) (2017), 19831993.CrossRefGoogle Scholar
Mao, G.-S., ‘Proof of a conjecture of Adamchuk’, J. Combin. Theory Ser. A 182 (2021), Article no. 105478.Google Scholar
Mao, G.-S. and Cao, Z.-J., ‘On two congruence conjectures’, C. R. Math. Acad. Sci. Paris Ser. I 357 (2019), 815822.Google Scholar
Mattarei, S. and Tauraso, R., ‘Congruences for central binomial sums and finite polylogarithms’, J. Number Theory 133 (2013), 131157.CrossRefGoogle Scholar
Morley, F., ‘Note on the congruence ${2}^{4n}\equiv {\left(-1\right)}^n(2n)!/{\left(n!\right)}^2$ , where $2n+1$ is a prime’, Ann. of Math. (2) 9 (1895), 168170.CrossRefGoogle Scholar
Pan, H. and Sun, Z.-W., ‘A combinatorial identity with application to Catalan numbers’, Discrete Math. 306 (2006), 19211940.Google Scholar
Schneider, C., ‘Symbolic summation assists combinatorics’, Sém. Lothar. Combin. 56 (2007), Article no. B56b.Google Scholar
Sun, Z.-H., ‘Congruences concerning Bernoulli numbers and Bernoulli polynomials’, Discrete Appl. Math. 105(1–3) (2000), 193223.CrossRefGoogle Scholar
Sun, Z.-W., ‘On congruences related to central binomial coefficients’, J. Number Theory 13(11) (2011), 22192238.Google Scholar
Sun, Z.-W., ‘Super congruences and Euler numbers’, Sci. China Math. 54(12) (2011), 25092535.CrossRefGoogle Scholar
Sun, Z.-W., ‘A new series for ${\pi}^3$ and related congruences’, Internat. J. Math. 26(8) (2015), Article no. 1550055, 23 pages.Google Scholar
Sun, Z.-W., ‘Open conjectures on congruences’, Nanjing Univ. J. Math. Biquarterly 36(1) (2019), 199.Google Scholar
Sun, Z.-W. and Tauraso, R., ‘On some new congruences for binomial coefficients’, Int. J. Number Theory 7 (2011), 645662.CrossRefGoogle Scholar
Tauraso, R., ‘Congruences involving alternating multiple harmonic sums’, Electron. J. Combin. 17 (2010), Article no. R16, 11 pages.Google Scholar