The formula of Bauer [1] from 1859,
$$\begin{aligned} \sum _{k=0}^\infty (-1)^k(4k+1)A_k=\frac{2}{\pi }, \quad \text {where}\; A_k=\frac{1}{2^{6k}}{\left( {\begin{array}{c}2k\\ k\end{array}}\right) }^3 \;\;\text {for}\; k=0,1,2,\ldots , \end{aligned}$$
(1.1)
is one of traditional targets for different methods of proofs of hypergeometric identities. Its special status is probably linked to the fact that it belongs to a family of series for \(1/\pi \) of Ramanujan type, after Ramanujan [21] brought to life in 1914 a long list of similar looking equalities for the constant but with a faster convergence. Identity (1.1) is a particular instance of \(_4F_3\) hypergeometric summation (known to Ramanujan) but there are several proofs of it, including the original one [1] of Bauer, that do not require any knowledge of hypergeometric functions. One notable—computer—proof of (1.1) was given in 1994 by Ekhad and Zeilberger [2] using the Wilf–Zeilberger (WZ) method of creative telescoping.
It was observed in 1997 by Van Hamme [28] that many Ramanujan’s and Ramanujan-like evaluations have nice p-adic analogues; for example, the congruence
$$\begin{aligned} \sum _{k=0}^{(p-1)/2}(-1)^k(4k+1)A_k\equiv p(-1)^{(p-1)/2}\;({\text {mod}}p^3) \end{aligned}$$
(1.2)
(tagged (B.2) on Van Hamme’s list) is valid for any prime \(p>2\) and corresponds to the equality (1.1). The congruence (1.2) was first proved by Mortenson [19] using a \(_6F_5\) hypergeometric transformation; it later received another proof by one of these authors [29] via the WZ method [in fact, using the very same ‘WZ certificate’ as in [2] for (1.1)]. Notice that (1.2) is an example of supercongruence meaning that it holds modulo a power of p greater than 1.
Another entry on Van Hamme’s 1997 list [28], tagged (H.2), is the congruence
$$\begin{aligned} \sum _{k=0}^{(p-1)/2}A_k \equiv {\left\{ \begin{array}{ll} -\Gamma _p(1/4)^4 \;({\text {mod}}p^2) &{}\quad \text { if } p\equiv 1\;({\text {mod}}4), \\ 0\;({\text {mod}}p^2) &{}\quad \text { if } p\equiv 3\;({\text {mod}}4), \end{array}\right. } \end{aligned}$$
(1.3)
again for any \(p>2\) prime, and \(\Gamma _p(x)\) is the p-adic Gamma function. Van Hamme not only observed but also proved (1.3) in [28], and it was later generalized by Sun [23, 24, Theorem 2.5], Guo and Zeng [12, Corollary 1.2], Long and Ramakrishna [17], Liu [15, 16, Theorem 1.5] in different ways. For example, Long and Ramakrishna [17, Theorem 3] gave the following generalization of (1.3):
$$\begin{aligned} \sum _{k=0}^{(p-1)/2} A_k \equiv {\left\{ \begin{array}{ll} -\Gamma _p(1/4)^4 \;({\text {mod}}p^3) &{}\quad \text { if } p\equiv 1\;({\text {mod}}4),\\ -\dfrac{p^2}{16}\,\Gamma _p(1/4)^4\;({\text {mod}}p^3) &{}\quad \text { if } p\equiv 3\;({\text {mod}}4). \end{array}\right. } \end{aligned}$$
(1.4)
Recently, these authors [14, Theorem 2] proved that, for any positive odd integer n, modulo \(\Phi _n(q)^2\),
$$\begin{aligned} \sum _{k=0}^{(n-1)/2}\frac{(q;q^2)_k^2(q^2;q^4)_k}{(q^2;q^2)_k^2(q^4;q^4)_k}\,q^{2k} \equiv {\left\{ \begin{array}{ll} \dfrac{(q^2;q^4)_{(n-1)/4}^2}{(q^4;q^4)_{(n-1)/4}^2}\,q^{(n-1)/2} &{}\quad \text {if}\; n\equiv 1\;({\text {mod}}4), \\ 0 &{}\quad \text {if}\; n\equiv 3\;({\text {mod}}4). \end{array}\right. } \end{aligned}$$
(1.5)
Here and in what follows, \(\Phi _n(q)\) denotes the nth cyclotomic polynomial; the q-shifted factorial is given by \((a;q)_0=1\) and \((a;q)_n=(1-a)(1-aq)\ldots (1-aq^{n-1})\) for \(n\geqslant 1\) or \(n=\infty \), while \([n]=[n]_q=1+q+\cdots +q^{n-1}\) stands for the q-integer. Van Hamme [27, Theorem 3] also proved that
$$\begin{aligned} \left( {\begin{array}{c}-1/2\\ (p-1)/4\end{array}}\right) \equiv -\frac{\Gamma _p(1/4)^2}{\Gamma _p(1/2)}\;({\text {mod}}p^2); \end{aligned}$$
in view of \(\Gamma _p(1/2)^2=-1\) for \(p\equiv 1\;({\text {mod}}4)\), by letting \(q\rightarrow 1\) in (1.5) for \(n=p\) we immediately obtain (1.3).
One feature of (1.3) (not highlighted in [28]) is its connection with the coefficients
$$\begin{aligned} a(p)={\left\{ \begin{array}{ll} 2(a^2-b^2) &{}\quad \text { if } p=a^2+b^2, a\, odd, \\ 0 &{}\quad \text { if } p\equiv 3\;({\text {mod}}4), \end{array}\right. } \end{aligned}$$
(1.6)
of CM modular form \(q\prod _{j=1}^\infty (1-q^{4j})^6\) of weight 3, namely, the congruence
$$\begin{aligned} a(p)\equiv -\Gamma _p(1/4)^4\;({\text {mod}}p^2) \quad \text {for primes}\; p\equiv 1\;({\text {mod}}4). \end{aligned}$$
This served as a main motivation in [14] for not only establishing (1.5) but also speculating on possible q-deformation of modular forms.
For some other recent progress on q-analogues of supercongruences, the reader is referred to [4, 5, 7,8,9,10,11, 13, 20, 22, 26, 29]. In particular, the authors [13] introduced and executed a new method of creative microscoping to prove (and reprove) many q-analogues of classical supercongruences and also raised some problems on q-congruences. Using this method, the first author [6] gave a refinement of (1.5) modulo \(\Phi _n(q)^3\) for \(n\equiv 3\;({\text {mod}}4)\), in other words, a q-analogue of (1.4) for \(p\equiv 3\;({\text {mod}}4)\).
A goal of this note is to present the following new q-analogue of Van Hamme’s supercongruence (1.3).
Theorem 1.1
Let n be a positive odd integer. Then
$$\begin{aligned}&\sum _{k=0}^{(n-1)/2}\frac{(1+q^{4k+1})\,(q^2;q^4)_k^3}{(1+q)\,(q^4;q^4)_k^3}\,q^{k} \nonumber \\&\quad \equiv \dfrac{[n]_{q^2}(q^3;q^4)_{(n-1)/2}}{(q^5;q^4)_{(n-1)/2}}\,q^{(1-n)/2} {\left\{ \begin{array}{ll} \;({\text {mod}}\Phi _n(q)^2 \Phi _n(-q)^3) &{}\quad \text {if}\; n\equiv 1\;({\text {mod}}4), \\ \;({\text {mod}}\Phi _n(q)^3 \Phi _n(-q)^3) &{}\quad \text {if}\; n\equiv 3\;({\text {mod}}4). \end{array}\right. } \end{aligned}$$
(1.7)
Note that \(\Phi _n(q)\Phi _n(-q)=\Phi _n(q^2)\) for odd indices n.
The \(n\equiv 3\;({\text {mod}}4)\) case of Theorem 1.1 confirms a conjecture of these authors [13, Conjecture 4.13], which states that, for \(n\equiv 3\;({\text {mod}}4)\),
$$\begin{aligned} \sum _{k=0}^{(n-1)/2}\frac{(1+q^{4k+1})\,(q^2;q^4)_k^3}{(1+q)\,(q^4;q^4)_k^3}\,q^{k} \equiv 0\;({\text {mod}}\Phi _n(q)^2 \Phi _n(-q)). \end{aligned}$$
It is not difficult to verify that
$$\begin{aligned} \frac{(3/4)_{(p-1)/2}}{(5/4)_{(p-1)/2}} \equiv -\frac{p}{16}\Gamma _p\left( 1/4\right) ^4 \;({\text {mod}}p^2) \end{aligned}$$
for \(p\equiv 3\;({\text {mod}}4)\), where \((a)_n=a(a+1)\ldots (a+n-1)\) denotes the rising factorial (also known as Pochhammer’s symbol). Therefore, the q-congruence (1.7) reduces to (1.4) for \(p\equiv 3\;({\text {mod}}4)\) when \(n=p\) and \(q\rightarrow 1\), and it reduces to (1.3) for \(p\equiv 1\;({\text {mod}}4)\) when \(n=p\) and \(q\rightarrow 1\). Moreover, letting \(n=p\) and \(q\rightarrow -1\) in (1.7), we immediately get (1.2). Thus, Theorem 1.1 presents a common q-analogue of supercongruences (1.2) and (1.3). We point out that other different q-analogues of (1.2) have been given in [7, 8].
Recently, Mao and Pan [18] (see also Sun [25, Theorem 1.3]) proved that, if \(p\equiv 1\;({\text {mod}}4)\) is a prime, then
$$\begin{aligned} \sum _{k=0}^{(p+1)/2}\frac{(-1/2)_k^3}{k!^3}\equiv 0\;({\text {mod}}p^2). \end{aligned}$$
(1.8)
In this note, we prove the following q-analogue of (1.8).
Theorem 1.2
Let \(n>1\) be an odd integer. Then
$$\begin{aligned}&\sum _{k=0}^{(n+1)/2}\frac{(1+q^{4k-1})\,(q^{-2};q^4)_k^3}{(1+q)\,(q^4;q^4)_k^3}\,q^{7k} \\&\quad \equiv \dfrac{[n]_{q^2}(q;q^4)_{(n-1)/2}}{(q^7;q^4)_{(n-1)/2}}\,q^{(n-3)/2} {\left\{ \begin{array}{ll} \;({\text {mod}}\Phi _n(q)^3 \Phi _n(-q)^3) &{}\quad \text {if}\; n\equiv 1\;({\text {mod}}4), \\ \;({\text {mod}}\Phi _n(q)^2 \Phi _n(-q)^3) &{}\quad \text {if}\; n\equiv 3\;({\text {mod}}4). \end{array}\right. } \nonumber \end{aligned}$$
The \(n\equiv 1\;({\text {mod}}4)\) case of Theorem 1.2 also confirms a conjecture of the first author and Schlosser [11, Conjecture 10.2].
For n prime, letting \(q\rightarrow 1\) in Theorem 1.2 we obtain the following generalization of (1.8).
Corollary 1.3
Let p be an odd prime. Then
$$\begin{aligned} \sum _{k=0}^{(p+1)/2} \frac{(-1/2)_k^3}{k!^3} \equiv p\,\dfrac{(1/4)_{(p-1)/2}}{(7/4)_{(p-1)/2}} {\left\{ \begin{array}{ll} \;({\text {mod}}p^3) &{}\quad \text {if } p\equiv 1\;({\text {mod}}4),\\ \;({\text {mod}}p^2) &{}\quad \text {if } p\equiv 3\;({\text {mod}}4). \end{array}\right. } \end{aligned}$$
On the other hand, for n prime and \(q\rightarrow -1\) in Theorem 1.2, we are led to the following result:
$$\begin{aligned} \sum _{k=0}^{(p+1)/2} (-1)^k (4k-1)\frac{(-1/2)_k^3}{k!^3} \equiv p(-1)^{(p+1)/2} \;({\text {mod}}p^3). \end{aligned}$$
(1.9)
It should be mentioned that a different q-analogue of (1.9) was given in [13, Theorem 4.9] with \(r=-1\), \(d=2\) and \(a=1\) (see also [11, Section 5]).
Moreover, for the summation formula
$$\begin{aligned} \sum _{k=0}^\infty \frac{(-\frac{1}{2})_k^3}{k!^3}=12\frac{\Gamma (3/4)^4}{\pi ^3}, \end{aligned}$$
we have the following q-analogue.
Theorem 1.4
We have
$$\begin{aligned} \sum _{k=0}^\infty \frac{(1+q^{4k-1})\,(q^{-2};q^4)_k^3}{(1+q^{-1})\,(q^4;q^4)_k^3}\,q^{7k} =\frac{(q^2;q^4)_\infty (q^5;q^4)_\infty ^2 (q^6;q^4)_\infty }{(q^3;q^4)_\infty (q^4;q^4)_\infty ^2 (q^7;q^4)_\infty }. \end{aligned}$$
Both Theorems 1.1 and 1.2 are particular cases of a more general result, which we state and prove in the next section, while Theorem 1.4 follows from a classical q-identity.