arXiv:2611.24769cs.ITNov 2026

Manuscript Offprint

arXiv:2611.24769

On cyclic codes generated by cyclotomic polynomials

Alonso S. Castellanos, Gyan Morales Solis, Guilherme Tizziotti

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract.

Let nn be a composite positive integer coprime to char⁡(Fq)\operatorname{char}(\mathbb{F}_{q}) and let t=lpf⁡(n)t=\operatorname{lpf}(n) be the least prime factor of nn. In this paper we study the cyclic codes Cn,t=⟨Qn(X)Qt(X)⟩\mathcal{C}_{n,t}=\langle Q_{n}(X)Q_{t}(X)\rangle and Cn,t,1=⟨Qn(X)Qt(X)Q1(X)⟩\mathcal{C}_{n,t,1}=\langle Q_{n}(X)Q_{t}(X)Q_{1}(X)\rangle over Fq\mathbb{F}_{q}, where Qd(X)Q_{d}(X) denotes the dd-th cyclotomic polynomial. These codes extend the families Cn=⟨Qn(X)⟩\mathcal{C}_{n}=\langle Q_{n}(X)\rangle and Cn,1=⟨Qn(X)Q1(X)⟩\mathcal{C}_{n,1}=\langle Q_{n}(X)Q_{1}(X)\rangle recently studied by Bhagat and Sarma. We determine the exact minimum distances of Cn,t\mathcal{C}_{n,t} and Cn,t,1\mathcal{C}_{n,t,1}, showing that d(Cn,t,1)=2td(\mathcal{C}_{n,t,1})=2t and that d(Cn,t)d(\mathcal{C}_{n,t}) equals tt if t2∤nt^{2}\nmid n, and 2t2t if t2∣nt^{2}\mid n. For the dual codes, we establish d(Cn,t⊥)=2ω(n)d(\mathcal{C}_{n,t}^{\perp})=2^{\omega(n)}, handling the case ω(n)≤2\omega(n)\leq 2 via the Hartmann–Tzeng bound, and the case ω(n)≥3\omega(n)\geq 3 via a direct-sum decomposition Cn,t⊥=Cn⊥⊕Vt\mathcal{C}_{n,t}^{\perp}=\mathcal{C}_{n}^{\perp}\oplus\mathcal{V}_{t} and the tensor-product structure of Cn⊥\mathcal{C}_{n}^{\perp} over its prime-power components. As applications, we show that all four code families are linear complementary dual (LCD) and locally recoverable (LRC), and we determine their locality parameters, identifying several infinite families that are rr-optimal or dd-optimal with respect to the Singleton-type bound for LRC codes.

Introduction

For a prime power qq and a positive integer nn with gcd⁡(n,q)=1\gcd(n,q)=1, cyclic codes of length nn over Fq\mathbb{F}_{q} are ideals of the quotient ring Fq[X]/⟨Xn−1⟩\mathbb{F}_{q}[X]/\langle X^{n}-1\rangle, and are generated by divisors of Xn−1X^{n}-1. Since Xn−1=∏d∣nQd(X)X^{n}-1=\prod_{d\mid n}Q_{d}(X) over Fq\mathbb{F}_{q}, where Qd(X)Q_{d}(X) denotes the dd-th cyclotomic polynomial (see [7]), cyclic codes generated by products of cyclotomic polynomials form a natural and algebraically well-structured subclass. Well-known families such as BCH codes and Reed–Solomon codes fall within this framework; we refer the reader to [6, 10, 8] for background.

For a positive integer n>1n>1 coprime to char⁡(Fq)\operatorname{char}(\mathbb{F}_{q}), the cyclic codes generated by Qn(X)Q_{n}(X) and by Qn(X)Q1(X)Q_{n}(X)Q_{1}(X) were studied by Bhagat and Sarma in [1, 2]. Denoting these codes by Cn=⟨Qn(X)⟩\mathcal{C}_{n}=\langle Q_{n}(X)\rangle and Cn,1=⟨Qn(X)Q1(X)⟩\mathcal{C}_{n,1}=\langle Q_{n}(X)Q_{1}(X)\rangle, and letting ω(n)\omega(n) the number of distinct prime factors of nn and lpf⁡(n)\operatorname{lpf}(n) the least prime factor of nn, they determined the exact parameters

Cn ⁣:[n, n−φ(n), lpf⁡(n)]q,Cn,1 ⁣:[n, n−φ(n)−1, 2lpf⁡(n)]q,\mathcal{C}_{n}\colon[n,\,n-\varphi(n),\,\operatorname{lpf}(n)]_{q},\qquad\mathcal{C}_{n,1}\colon[n,\,n-\varphi(n)-1,\,2\operatorname{lpf}(n)]_{q},

as well as the parameters [n,φ(n),2ω(n)]q[n,\varphi(n),2^{\omega(n)}]_{q} and [n,φ(n)+1,2ω(n)]q[n,\varphi(n)+1,2^{\omega(n)}]_{q} of their Euclidean duals, and established that all four codes are LCD-LRC codes with explicit locality parameters and optimality properties.

In this paper, we extend this study to two families obtained by incorporating an additional cyclotomic factor. Let nn be a composite integer coprime to char⁡(Fq)\operatorname{char}(\mathbb{F}_{q}) and let t=lpf⁡(n)t=\operatorname{lpf}(n) denote its least prime factor. We consider the cyclic codes

Cn,t=⟨Qn(X)Qt(X)⟩andCn,t,1=⟨Qn(X)Qt(X)Q1(X)⟩.\mathcal{C}_{n,t}=\langle Q_{n}(X)Q_{t}(X)\rangle\quad\text{and}\quad\mathcal{C}_{n,t,1}=\langle Q_{n}(X)Q_{t}(X)Q_{1}(X)\rangle.

The inclusions Cn,t⊊Cn\mathcal{C}_{n,t}\subsetneq\mathcal{C}_{n} and Cn,t,1⊊Cn,1\mathcal{C}_{n,t,1}\subsetneq\mathcal{C}_{n,1} imply Cn⊥⊊Cn,t⊥\mathcal{C}_{n}^{\perp}\subsetneq\mathcal{C}_{n,t}^{\perp} and Cn,1⊥⊊Cn,t,1⊥\mathcal{C}_{n,1}^{\perp}\subsetneq\mathcal{C}_{n,t,1}^{\perp}, so the codes Cn,t\mathcal{C}_{n,t} and Cn,t,1\mathcal{C}_{n,t,1} have smaller dimension than their counterparts in [1], while their duals have larger dimension and minimum distance at most 2ω(n)2^{\omega(n)}.

We determine the exact minimum distances of Cn,t\mathcal{C}_{n,t} and Cn,t,1\mathcal{C}_{n,t,1} in Section 2. We show that d(Cn,t,1)=2td(\mathcal{C}_{n,t,1})=2t in all cases, while d(Cn,t)d(\mathcal{C}_{n,t}) exhibits a dichotomy depending on the divisibility of nn by t2t^{2}: it equals tt if t2∤nt^{2}\nmid n, and 2t2t if t2∣nt^{2}\mid n. The upper bounds are achieved by explicit low-weight codewords, and the lower bounds follow either from inclusion inequalities or from the BCH bound applied to the defining set of Cn,t\mathcal{C}_{n,t}.

For the dual codes, we establish d(Cn,t⊥)=2ω(n)d(\mathcal{C}_{n,t}^{\perp})=2^{\omega(n)} (assuming n>t2n>t^{2}). The case ω(n)≤2\omega(n)\leq 2 is treated in Section 3 via the Hartmann–Tzeng bound [5], together with direct arguments for the special cases n=ℓan=\ell^{a} and n=p1p2n=p_{1}p_{2}. The case ω(n)≥3\omega(n)\geq 3, handled in Section 4, requires a more structural approach. We prove that Cn,t⊥\mathcal{C}_{n,t}^{\perp} decomposes as the direct sum Cn⊥⊕Vt\mathcal{C}_{n}^{\perp}\oplus\mathcal{V}_{t}, where Vt\mathcal{V}_{t} is a periodic cyclic subspace of Fqn\mathbb{F}_{q}^{n}. We then use the tensor-product factorization

Cn⊥=Ψk(Cp1a1⊥⊗⋯⊗Cpkak⊥),\mathcal{C}_{n}^{\perp}=\Psi_{k}\bigl(\mathcal{C}_{p_{1}^{a_{1}}}^{\perp}\otimes\cdots\otimes\mathcal{C}_{p_{k}^{a_{k}}}^{\perp}\bigr),

established via the Chinese Remainder Theorem as a generalization of a result of [2], together with parity constraints along each tensor direction and the periodic structure of Vt\mathcal{V}_{t}, to prove that every nonzero codeword of Cn,t⊥\mathcal{C}_{n,t}^{\perp} has weight at least 2ω(n)2^{\omega(n)}.

Section 5 presents two applications of these results. First, we show that Cn,t\mathcal{C}_{n,t}, Cn,t,1\mathcal{C}_{n,t,1}, and their duals are linear complementary dual (LCD) codes, a class introduced by Massey [11] and of renewed interest due to applications in side-channel attack countermeasures in cryptographic hardware implementations [3]. The LCD property follows from the fact that the generator polynomials of all four codes are products of cyclotomic polynomials, which are self-reciprocal for d>1d>1. Second, we show that all four families are locally recoverable (LRC) codes in the sense of [4], by relating the locality of each cyclic code to the minimum distance of its dual code. In particular, we identify several infinite families that are rr-optimal or simultaneously rr-optimal and dd-optimal with respect to the Singleton-type bound for LRC codes established in [4] (see also [1]).

The paper is organized as follows. Section 1 collects the necessary background on cyclotomic polynomials, cyclic codes, and LCD and LRC codes. Section 2 determines the minimum distances of Cn,t\mathcal{C}_{n,t} and Cn,t,1\mathcal{C}_{n,t,1}. Section 3 treats d(Cn,t⊥)d(\mathcal{C}_{n,t}^{\perp}) for ω(n)≤2\omega(n)\leq 2, and Section 4 handles the case ω(n)≥3\omega(n)\geq 3. Section 5 presents the LCD and LRC applications.