Proof of Theorem 5
In the setting of Theorem 5 we have \(q\) odd. Let \(\varsigma _r(q)\) denote the number of cyclotomic cosets of odd size. In [8], an expression for \(\varsigma _1(q)\) was given, in a slightly different notation. Here we will use a similar method to show that \(\varsigma _r(q)=\vartheta _r(q_0)\) for all \(r\).
Let
$$\begin{aligned} \mathbb {Z}_q^* =\bigl \{a\mid \gcd (a,q)=1, a\in [1,q-1]\bigr \}, \end{aligned}$$
and for
\(d|q\), let
$$\begin{aligned} \mathbb {Z}_{q,d}=\left\{ a\frac{q}{d} \, \Big |\, a\in \mathbb {Z}_d^*\right\} . \end{aligned}$$
In particular,
\( \mathbb {Z}_{q,1} =\left\{ 0\right\} \). The size of
\(\mathbb {Z}_{q,d}\) is
\(\varphi (d)\), where
\(\varphi (\cdot )\) is Euler’s totient function. We have the following disjoint-union decomposition [
8, Lemma 4]:
$$\begin{aligned} \mathbb {Z}_q= \bigcup _{d\mid q} \mathbb {Z}_{q,d}. \end{aligned}$$
(22)
We observe that Lemma 4 implies that \(\mathbb {Z}_{q,d}\) is the disjoint union of \(\varphi (d)/\ell _d\) cosets of size \(\ell _d\).
In [8, Lemma 5] the following result was given.
From Lemma 5 we get the following more general result:
Now, consider a cyclotomic coset in
\(\mathbb {Z}_q^r\), generated by
\((a_1,a_2,\ldots a_r)\). Suppose
\(a_i\in \mathbb {Z}_{q,d_i}\). Then the size of the coset is
\({{\mathrm{lcm}}}(\ell _{d_1},\ell _{d_2},\ldots , \ell _{d_r})=\ell _{{{\mathrm{lcm}}}(d_1,d_2,\ldots ,d_r)}\), and the number of such cosets is
$$\begin{aligned} \frac{\varphi (d_1)\varphi (d_2)\ldots \varphi (d_r)}{\ell _{{{\mathrm{lcm}}}(d_1,d_2,\ldots ,d_r)}}. \end{aligned}$$
We get cosets of odd order if and only if
\(d_i|q_0\) for all
\(i\). Hence we get
$$\begin{aligned} \varsigma _r(q)= \sum _{d_1\mid q_0} \sum _{d_2\mid q_0}\cdots \sum _{d_r\mid q_0} \frac{\varphi (d_1)\varphi (d_2)\ldots \varphi (d_r)}{\ell _{{{\mathrm{lcm}}}(d_1,d_2,\ldots ,d_r)}} =\sum _{d\mid q_0} \frac{\Phi _r(d)}{\ell _{d}}, \end{aligned}$$
(23)
where
$$\begin{aligned} \Phi _r(d)= \sum _{ {{\mathrm{lcm}}}(d_1,d_2,\ldots ,d_r)=d } \varphi (d_1)\varphi (d_2)\ldots \varphi (d_r). \end{aligned}$$
It follows that
$$\begin{aligned} \sum _{c| d} \Phi _r(c)&= \sum _{d_1| d,d_2| d,\ldots ,d_r| d} \varphi (d_1)\varphi (d_2)\ldots \varphi (d_r)\\&= \left( \sum _{d_1| d}\varphi (d_1) \right) \left( \sum _{d_2| d}\varphi (d_2) \right) \ldots \left( \sum _{d_r| d}\varphi (d_r) \right) = \left( \sum _{a | d}\varphi (a) \right) ^r = d^r. \end{aligned}$$
Using Möbius inversion, we get
$$\begin{aligned} \Phi _r(d)= \sum _{c| d}\mu \left( \frac{d}{c} \right) c^r. \end{aligned}$$
(24)
Substituting this expression in (
23) we get
$$\begin{aligned} \varsigma _r(q)=\vartheta _r(q_0). \end{aligned}$$
This completes the proof of Theorem 5.
For \(r=1\), the expression in (23) was given in [8, Theorem 2], in a slightly different notation. In the same theorem we determined \(\theta _{2,0,1}(q)\). For \(r>1\), the result is new.
Proof of Theorem 8
The expressions for \(\omega _{2,0,r}(q)\) in Theorem 5 and \(\theta _{2,0,r}(q)\) in (12), and their proofs, are closely related. In the same way we will get closely related expressions and proofs for \(\omega _{2,2,r}(q)\) and \(\theta _{2,2,r}(q)\). For \(\theta _{2,2,1}(q)\), the expression in Theorem 8 was given in [9], in a slightly different notation. For general \(r\) we get a proof that generalizes its proof.
Consider the coset generated by a non-zero \(\mathbf{a}=(a_1,a_2,\ldots , a_r)\in \mathbb {Z}_q^r\). We first remark that if \(-\mathbf{a}\in \sigma (\mathbf{a})\), that is, \(\sigma (-\mathbf{a})=\sigma (\mathbf{a})\), then \(\left| \sigma (\mathbf{a})\right| \) is even: if \(u>0\) is minimal such that \(-\mathbf{a}=2^u\mathbf{a}\;(\mathrm{mod}\; q)\), then \(\left| \sigma (\mathbf{a})\right| =2u\).
The coset \(\sigma (\mathbf{a})\) has odd size if and only if \(\sigma (a_i)\), \(1\le i \le r\), all have odd size. In this case \(\sigma (\mathbf{a})\) and \(\sigma (-\mathbf{a})\) are disjoint, and the \((\left| \sigma (\mathbf{a})\right| +1)/2\) elements \(2^{2i}\mathbf{a}\), \(i\in [0,(\left| \sigma (\mathbf{a})\right| -1)/2]\) will cover \(\sigma (\mathbf{a})\cup \sigma (-\mathbf{a})\), and the union cannot be covered by fewer elements. We select these elements in a covering set. Hence we get a contribution \((\left| \sigma (\mathbf{a})\right| +1)/4\) to \(\omega _{2,2,r}(q)\) from the coset \(\sigma (\mathbf{a})\) and \((\left| \sigma (\mathbf{a})\right| +1)/4=(\left| \sigma (-\mathbf{a})\right| +1)/4\) from the coset \(\sigma (-\mathbf{a})\). The number of such cosets is \(\vartheta _r(q_0)\) as was shown in the proof of Theorem 5.
If \(\left| \sigma (\mathbf{a})\right| \) is even, but \(\sigma (-\mathbf{a})\ne \sigma (\mathbf{a})\) (that is, the two sets are disjoint), then we select the \(\left| \sigma (\mathbf{a})\right| /2\) elements \(2^{2i}\mathbf{a}\), \(i\in [0,\left| \sigma (\mathbf{a})\right| /2-1]\) to cover \(\sigma (\mathbf{a})\cup \sigma (-\mathbf{a})\). The contribution to \(\omega _{2,2,r}(q)\) from the cosets \(\sigma (\mathbf{a})\) and \(\sigma (-\mathbf{a})\) is therefore \(\left| \sigma (\mathbf{a})\right| /4+\left| \sigma (-\mathbf{a})\right| /4\).
Now, consider the situation when \(\sigma (-\mathbf{a})=\sigma (\mathbf{a})\). As before, let \(u>0\) be the minimal integer such that \(-\mathbf{a}=2^u\mathbf{a}\;(\mathrm{mod}\; q)\). If \(u\) is even, then the \(u/2=\left| \sigma (\mathbf{a})\right| /4\) elements \(2^{2i}\mathbf{a}\), \(i\in [0,u/2-1]\) cover \(\sigma (\mathbf{a})\). Finally, if \(u\) is odd, then the \((u+1)/2=(\left| \sigma (\mathbf{a})\right| +2)/4\) elements \(2^{2i}\mathbf{a}\), \(i\in [0,(u-1)/2]\) cover \(\sigma (\mathbf{a})\). We see that \(u\) is odd if and only if \(\sigma (a_i)\) is singly even for all \(i\). In the proof of [9, Theorem 6], it was shown that this occurs exactly when \(a_i\in \mathbb {Z}_{q,d_i}\) for some \(d_i|q_1\). A proof similar to the proof in Appendix 10 shows that the number of such cosets is \(\vartheta _r(q_1)\). Summing over all the cosets, we get the expression in Theorem 8.
A result for \(\vartheta _r(q)\)
A simple, but useful relation is the following.
We recall that \( \Phi _r(d) \) was defined by (24). This is a multiplicative function, as the following lemma shows.
For a prime
\(p\), define
\( \Delta _r(p^\beta ) \) by
$$\begin{aligned} \Delta _r(p^\beta )={\left\{ \begin{array}{ll} 1 &{}\quad \! \beta =0, \\ p^{r\beta }-p^{r(\beta -1)} &{}\quad \! \text {otherwise.} \end{array}\right. } \end{aligned}$$
For convenience, we let
\( \Delta (p^\beta )=\Delta _1(p^\beta )\).
We now give a main lemma on \(\vartheta _r(q)\).
We illustrate the proof by a simple example.