We shall first prove the following unified generalization of Theorems 2 and 3 for \(d=4\).
Theorem 6
Let r be an odd integer. Let \(n>1\) be an odd integer with \(n\equiv -r\pmod {4}\) and \(n\geqslant \max \{r,4-r\}\). Then
$$\begin{aligned} \sum _{k=0}^{n-1}[8k+r]\frac{(q^r;q^4)_k^4}{(q^4;q^4)_k^4}q^{(4-2r)k} \equiv 0\pmod {\Phi _n(q)^2}. \end{aligned}$$
(3.1)
Proof
Let \(\alpha \), j and r be integers. It is easy to see that
$$\begin{aligned} (1-q^{\alpha n-dj+d-r})(1-q^{\alpha n+dj-d+r})+(1-q^{dj-d+r})^2 q^{\alpha n-dj+d-r}=(1-q^{\alpha n})^2 \end{aligned}$$
and \(1-q^{\alpha n}\equiv 0\pmod {\Phi _n(q)}\), and so
$$\begin{aligned} (1-q^{\alpha n-dj+d-r})(1-q^{\alpha n+dj-d+r})\equiv -(1-q^{dj-d+r})^2 q^{\alpha n-dj+d-r}\!\!\!\pmod {\Phi _n(q)^2}. \end{aligned}$$
It follows that
$$\begin{aligned} (q^{r-\alpha n},q^{r+\alpha n};q^d)_k \equiv (q^r;q^d)_k^2 \pmod {\Phi _n(q)^2}. \end{aligned}$$
(3.2)
It is clear that \(3n\equiv r\pmod {4}\). Therefore, by (3.2) and the \(q\mapsto q^4\), \(a\mapsto q^r\), \(b\mapsto q^r\), \(c\mapsto q^{r+3n}\), \(n\mapsto (3n-r)/4\) instance of the terminating \({}_6\phi _5\) summation (see [4, Appendix (II.21)]):
$$\begin{aligned} _6\phi _5 \left[ \begin{array}{c} a,\, qa^{\frac{1}{2}},\, -qa^{\frac{1}{2}},\, b,\, c,\, q^{-n} \\ a^{\frac{1}{2}},\, -a^{\frac{1}{2}},\, aq/b,\, aq/c,\, aq^{n+1}\end{array}; q,\,\frac{aq^{n+1}}{bc} \right] =\frac{(aq, aq/bc;q)_n}{(aq/b, aq/c;q)_n}, \end{aligned}$$
where the basic hypergeometric series \(_{r+1}\phi _r\) (see [4]) is defined as
$$\begin{aligned} _{r+1}\phi _{r}\left[ \begin{array}{c} a_1,a_2,\ldots ,a_{r+1}\\ b_1,b_2,\ldots ,b_{r} \end{array};q,\, z \right] =\sum _{k=0}^{\infty }\frac{(a_1,a_2,\ldots , a_{r+1};q)_k z^k}{(q,b_1,\ldots ,b_{r};q)_k}, \end{aligned}$$
modulo \(\Phi _n(q)^2\), the left-hand side of (3.1) is congruent to
$$\begin{aligned}&\sum _{k=0}^{(3n-r)/4}[8k+r]\frac{(q^r,q^r,q^{r+3n}, q^{r-3n};q^4)_k }{(q^4, q^4, q^{4-3n}, q^{4+3n};q^4)_k} q^{(4-2r)k}&\nonumber \\&\qquad =[r]\frac{(q^{r+4}, q^{4-3n-r};q^4)_{(3n-r)/4}}{(q^4, q^{4-3n};q^4)_{(3n-r)/4}}. \end{aligned}$$
(3.3)
Note that \((3n-r)/4\leqslant n-1\) by the condition \(n\geqslant 4-r\). It is clear that \((q^{r+4};q^4)_{(3n-r)/4}\) has the factor \(1-q^{3n}\), and \((q^{4-r-3n};q^4)_{(3n-r)/4}\) has the factor \((1-q^{-2n})\) since \((3n-r)/4\geqslant (n+r)/4\) by the condition \(n\geqslant r\). Therefore the numerator on the right-hand side of (3.3) is divisible by \(\Phi _n(q)^2\), while the denominator is relatively prime to \(\Phi _n(q)\). This completes the proof. \(\square \)
We need the following lemma in our proof of Theorems 2 and 3 for \(d\geqslant 6\).
Lemma 1
Let \(d\geqslant 5\) be an integer and let r be an integer with \(\gcd (d,r)=1\). Let \(n=ad-r\geqslant r\) with \(a\geqslant 1\). Suppose that \(2r+kd\equiv 0\pmod {n}\) for some \(k>0\). Then \(k\geqslant a(d-4)/2\).
Proof
Since \(\gcd (d,r)=1\), we have \(\gcd (n,d)=1\) for \(n=ad-r\). Noticing that
$$\begin{aligned} 2r+kd=(k+2a)d-2(ad-r)=(k+2a)d-2n, \end{aligned}$$
we conclude that \((k+2a)d\equiv 0\pmod {n}\). It follows that \(k+2a\) is a multiple of n and so \(k+2a\geqslant n\), i.e.,
$$\begin{aligned} k+2a\geqslant ad-r. \end{aligned}$$
By the condition \(ad-r\geqslant r\) in the lemma, we get \(r\leqslant ad/2\). Substituting this into the above inequality, we obtain the desired result. \(\square \)
We now give a common generalization of Theorems 2 and 3.
Theorem 7
Let \(d\geqslant 4\) be an even integer and let r be an integer with \(\gcd (d,r)=1\). Let \(n>1\) be an integer with \(n\equiv -r\pmod {d}\) and \(n\geqslant \max \{r,d-r\}\). Then
$$\begin{aligned} \sum _{k=0}^{n-1}[2dk+r]\frac{(q^r;q^d)_k^d}{(q^d;q^d)_k^d}q^{\frac{d(d-r-2)k}{2}} \equiv 0\pmod {\Phi _n(q)^2}. \end{aligned}$$
(3.4)
Proof
The \(d=4\) case is just Theorem 6. We now suppose that \(d\geqslant 6\). The proof of this case is intrinsically the same as that of Theorem 6. Here we need to use a complicated transformation formula due to Andrews [1, Theorem 4]:
$$\begin{aligned}&\sum _{k\geqslant 0}\frac{(a,q\sqrt{a},-q\sqrt{a},b_1,c_1,\dots ,b_m,c_m,q^{-N};q)_k}{(q,\sqrt{a},-\sqrt{a},aq/b_1,aq/c_1,\dots ,aq/b_m,aq/c_m,aq^{N+1};q)_k}\nonumber \\&\qquad \times \left( \frac{a^mq^{m+N}}{b_1c_1\cdots b_mc_m}\right) ^k \nonumber \\&\quad =\frac{(aq,aq/b_mc_m;q)_N}{(aq/b_m,aq/c_m;q)_N} \sum _{l_1,\dots ,l_{m-1}\geqslant 0} \frac{(aq/b_1c_1;q)_{l_1}\cdots (aq/b_{m-1}c_{m-1};q)_{l_{m-1}}}{(q;q)_{l_1}\cdots (q;q)_{l_{m-1}}} \nonumber \\&\quad \quad \times \frac{(b_2,c_2;q)_{l_1}\dots (b_m,c_m;q)_{l_1+\dots +l_{m-1}}}{(aq/b_1,aq/c_1;q)_{l_1} \dots (aq/b_{m-1},aq/c_{m-1};q)_{l_1+\dots +l_{m-1}}} \nonumber \\&\quad \quad \times \frac{(q^{-N};q)_{l_1+\dots +l_{m-1}}}{(b_mc_mq^{-N}/a;q)_{l_1+\dots +l_{m-1}}} \frac{(aq)^{l_{m-2}+\dots +(m-2)l_1} q^{l_1+\dots +l_{m-1}}}{(b_2c_2)^{l_1}\cdots (b_{m-1}c_{m-1})^{l_1+\dots +l_{m-2}}}, \end{aligned}$$
(3.5)
which is a multiseries generalization of Watson’s \(_8\phi _7\) transformation formula (see [4, Appendix (III.18)]):
$$\begin{aligned}&_{8}\phi _{7}\!\left[ \begin{array}{cccccccc} a,&{} qa^{\frac{1}{2}},&{} -qa^{\frac{1}{2}}, &{} b, &{} c, &{} d, &{} e, &{} q^{-n} \\ &{} a^{\frac{1}{2}}, &{} -a^{\frac{1}{2}}, &{} aq/b, &{} aq/c, &{} aq/d, &{} aq/e, &{} aq^{n+1} \end{array};q,\, \frac{a^2q^{n+2}}{bcde} \right] \nonumber \\&\quad =\frac{(aq, aq/de;q)_n}{(aq/d, aq/e;q)_n} \,{}_{4}\phi _{3}\!\left[ \begin{array}{c} aq/bc,\ d,\ e,\ q^{-n} \\ aq/b,\, aq/c,\, deq^{-n}/a \end{array};q,\, q \right] . \end{aligned}$$
(3.6)
It is easy to see that \((d-1)n\equiv r\pmod {d}\). Hence, by (3.2), modulo \(\Phi _n(q)^2\), the left-hand side of (3.4) is congruent to
$$\begin{aligned} \sum _{k=0}^{(dn-n-r)/d}&[r]\frac{(q^r,q^d\sqrt{q^r},-q^d\sqrt{q^r}, \overbrace{q^r,\ldots ,q^r}^{{(d-3)\text {'s} q^r}};q^d)_k}{(q^d,\sqrt{q^r},-\sqrt{q^r},q^d,\ldots ,q^d;q^d)_k}\\&\times \frac{(q^{r+(d-1)n},q^{r-(d-1)n};q^d)_k}{(q^{d-(d-1)n},q^{d+(d-1)n};q^d)_k} q^{\frac{d(d-r-2)k}{2}}, \end{aligned}$$
where we have used the fact \((dn-n-r)/d\leqslant n-1\) by the condition \(n\geqslant d-r\). Furthermore, by the \(q\mapsto q^d\), \(a\mapsto q^r\), \(b_i\mapsto q^r\), \(c_i\mapsto q^r\), for \(1\leqslant i\leqslant m-1\), \(b_m\mapsto q^r\), \(c_m\mapsto q^{r+(d-1)n}\), \(N\mapsto ((d-1)n-r)/d\) case of Andrews’ transformation (3.5), the above summation can be written as
$$\begin{aligned}&[r]\frac{(q^{d+r},q^{d+n-dn-r};q^d)_{(dn-n-r)/d}}{(q^d,q^{d+n-dn};q^d)_{(dn-n-r)/d}} \sum _{l_1,\dots ,l_{m-1}\geqslant 0} \frac{(q^{d-r};q^d)_{l_1}\cdots (q^{d-r};q^d)_{l_{m-1}}}{(q^d;q^d)_{l_1}\cdots (q^d;q^d)_{l_{m-1}}} \nonumber \\&\quad \quad \times \frac{(q^r,q^r;q^d)_{l_1}\dots (q^r,q^{r+(d-1)n};q^d)_{l_1+\dots +l_{m-1}}}{(q^d,q^d;q^d)_{l_1} \dots (q^d,q^d;q^d)_{l_1+\dots +l_{m-1}}} \nonumber \\&\quad \quad \times \frac{(q^{r-(d-1)n};q^d)_{l_1+\dots +l_{m-1}}}{(q^{2r};q^d)_{l_1+\dots +l_{m-1}}} \frac{q^{(d+r)(l_{m-2}+\dots +(m-2)l_1)} q^{d(l_1+\dots +l_{m-1})}}{q^{2rl_1}\cdots q^{2r(l_1+\dots +l_{m-2})}},\nonumber \\ \end{aligned}$$
(3.7)
where \(m=(d-2)/2\).
It is easy to see that \((q^{d+r};q^d)_{(dn-n-r)/d}\) contains the factor \(1-q^{(d-1)n}\). Similarly, \((q^{d+n-dn-r};q^d)_{(dn-n-r)/d}\) contains the factor \(1-q^{(2-d)n}\) since \((dn-n-r)/d\geqslant (n+r)/d\) by the conditions \(d\geqslant 6\) and \(n\geqslant r\). Thus, the expression \((q^{d+r},q^{d+n-dn-r};q^d)_{(dn-n-r)/d}\) in the fraction before the multiple summation is divisible by \(\Phi _n(q)^2\).
Note that the non-zero terms in the multiple summation of (3.7) are just those indexed by \((l_1,\ldots ,l_{m-1})\) with \(l_1+\dots +l_{m-1}\leqslant (dn-n-r)/d\leqslant n-1\) because of the factor \((q^{r-(d-1)n};q^d)_{l_1+\dots +l_{m-1}}\) in the numerator. This immediately implies that all the other q-factorials in the denominator of the multiple summation of (3.7) do not contain factors of the form \(1-q^{\alpha n}\) (and are therefore relatively prime to \(\Phi _n(q)\)), except for \((q^{2r};q^d)_{l_1+\dots +l_{m-1}}\). If \(n=d-r\), then it is clear that at least one \((q^{d-r};q^d)_{l_i}\) contains the factor \(1-q^n\) \(l_1+\dots +l_{m-1}>0\). We now assume that \(n\geqslant 2d-r\) and so \(n>\max \{d,r\}\) in this case. Thus, if \((q^{2r};q^d)_{l_1+\dots +l_{dm-1}}\) has a factor \(1-q^{kn}\), then the number k is unique since \(l_1+\dots +l_{m-1}\leqslant n-1\) and \(\gcd (n,d)=1\). Moreover, if such a k exists, then we must have \(k\geqslant a(d-4)/2\) by Lemma 1, where \(n=ad-r\). It follows that \(l_1+\dots +l_{m-1}\geqslant k\) and at least one \(l_i\) is greater than or equal to \(k/(m-1)=2k/(d-4)\geqslant a\) and so \((q^{d-r};q^d)_{l_i}\) contains the factor \(1-q^n\) in this case. This proves that the denominator of the reduced form of the multiple summation of (3.7) is always relatively prime to \(\Phi _n(q)\), which completes the proof of (3.4). \(\square \)