arXiv:2610.29810cs.ITOct 2026

Manuscript Offprint

arXiv:2610.29810

On the maximum length of cyclic MDS codes

Gaojun Luo, Xiwang Cao, Shitao Li, Yang Li

GAOJUN LUO, XIWANG CAO, SHITAO LI, AND YANG LI

ABSTRACT. We study the maximum length of nontrivial simple-root cyclic maximum distance separable (MDS) codes over Fq\mathbb{F}_q. We prove n≤q+1n \leq q + 1 if gcd⁡(n,q2−1)>2\gcd(n, q^2 - 1) > 2, or if the dimension is even and gcd⁡(n,q2−1)>1\gcd(n, q^2 - 1) > 1. The bound also holds for all lengths whose prime factors lie in {2,3,5,7}\{2, 3, 5, 7\}. We obtain further cases involving primes ℓ≥11\ell \geq 11 with (ℓ−1)/2(\ell - 1)/2 prime, under conditions on the exponents and the characteristic. The proofs combine Fourier supports, locality bounds and field descent with arithmetic restrictions on multiplicative orders and prime-adic valuations.

1. INTRODUCTION

Let qq be a prime power and let Fq\mathbb{F}_q be the finite field with qq elements. An [n,k,d]q[n,k,d]_q linear code C\mathcal{C} is a kk-dimensional subspace of Fqn\mathbb{F}_q^n with minimum Hamming distance dd. The Singleton bound [19] gives d≤n−k+1d \leq n - k + 1. The code C\mathcal{C} is maximum distance separable (MDS) if d=n−k+1d = n - k + 1. We call such a code an [n,k]q[n,k]_q MDS code. MDS codes with parameters [n,1]q[n,1]_q, [n,n−1]q[n,n-1]_q or [n,n]q[n,n]_q exist for every n≥2n \geq 2. These codes are called trivial MDS codes. An MDS code is nontrivial if 2≤k≤n−22 \leq k \leq n - 2.

For fixed k≥2k \geq 2 and qq, let m(k,q)m(k, q) be the maximum length of a q-ary linear MDS code of dimension kk. Determining this length is a central problem in coding theory. Segre [24] proposed the MDS conjecture in 1955. The conjecture states that every nontrivial [n,k]q[n, k]_q linear MDS code satisfies n≤q+1n \leq q + 1, except when qq is even and k∈{3,q−1}k \in \{3, q - 1\}. In these cases, the conjectured bound is n≤q+2n \leq q + 2. This length problem is equivalent to finding the maximum size of an arc in the projective space PG(k−1,q)\mathrm{PG}(k - 1, q); see [4].

Ball [2] proved the conjecture when qq is prime. For q=pfq = p^f with pp an odd prime and f>1f > 1, Ball and De Beule [3] proved the bound n≤q+1n \leq q + 1 for k≤2p−2k \leq 2p - 2. The maximum length of MDS elliptic codes has been studied in [6, 13, 14, 17, 21]. Deng, Feng, and Vasil'ev [8] studied the lengths of MDS codes with a 2-transitive permutation automorphism group. They proved that every such [n,k]q[n, k]_q code with 4≤k≤q−34 \leq k \leq q - 3 satisfies n≤q+1n \leq q + 1. Fan [10] proved the conjecture for a range of dimensions when qq is odd.

An [n,k,d]q[n,k,d]_q linear code C\mathcal{C} is cyclic if (c0,c1,⋯ ,cn−1)∈C(c_0,c_1,\cdots,c_{n-1})\in\mathcal{C} implies (cn−1,c0,⋯ ,cn−2)∈C(c_{n-1},c_0,\cdots,c_{n-2})\in\mathcal{C}. Its permutation automorphism group is transitive on the coordinate positions, but it need not

2020 Mathematics Subject Classification. Primary 94B05, 94B15; Secondary 11T71, 20B25, 94B65.

Key words and phrases. MDS code, cyclic code, length bound.

The research of Gaojun Luo was supported by the National Natural Science Foundation of China under Grant 12401690.

The research of Xiwang Cao was supported by the National Natural Science Foundation of China under Grant 12571575.

GAOJUN LUO, XIWANG CAO, SHITAO LI, AND YANG LI

be 2-transitive. The code C can be identified with an ideal of the quotient ring Fq[x]/(xn−1)\mathbb{F}_q[x]/(x^n-1). A cyclic code of length nn over Fq\mathbb{F}_q is called simple-root if gcd⁡(n,q)=1\gcd(n,q) = 1 and repeated-root otherwise. These terms refer to whether xn−1x^n - 1 has distinct or repeated roots in its splitting field.

The existence of [n,k]q[n, k]_q cyclic MDS codes with n∣(q−1)n \mid (q-1) or n∣(q+1)n \mid (q+1) has been studied in [7, 12, 16, 19, 20, 22, 23]. Let pp be the characteristic of Fq\mathbb{F}_q. The repeated-root case has been settled in [22]. Pedersen and Dahl [22] proved that, for 2≤k≤n−22 \leq k \leq n-2, a repeated-root [n,k]q[n, k]_q cyclic MDS code exists if and only if n=pn = p. To the best of our knowledge, the maximum length of a nontrivial simple-root cyclic MDS code over Fq\mathbb{F}_q with prescribed dimension kk remains undetermined in general. Deng, Feng, and Vasil'ev [8, Section 5] also identify the MDS conjecture for cyclic codes as a problem for further study. All cyclic codes considered below are assumed to be simple-root.

We study the maximum length of nontrivial cyclic MDS codes. The main results are stated below.

Theorem 1.1. Let qq be a prime power and let C\mathcal{C} be a nontrivial [n,k]q[n,k]_{q} cyclic MDS code. Suppose that at least one of the following conditions holds:

(1) gcd⁡(n,q2−1)>2;\gcd(n, q^{2} - 1) > 2;

(2) k is even and gcd⁡(n,q2−1)>1\gcd(n, q^{2} - 1) > 1.

Then n≤q+1n \leq q + 1.

Theorem 1.2. Let qq be a prime power. Every nontrivial [n,k]q[n,k]_{q} cyclic MDS code satisfies n≤q+1n \leq q+1 in either of the following cases:

(1) 3∣n3 \mid n or 4∣n4 \mid n.

(2) There are distinct odd prime divisors ℓ1,ℓ2\ell_1, \ell_2 of nn with gcd⁡(ℓ1−1,ℓ2−1)=2\gcd(\ell_1 - 1, \ell_2 - 1) = 2.

Theorem 1.3. Let q=pfq = p^f, where pp is a prime and f≥1f \geq 1. Let C\mathcal{C} be a nontrivial [n,k]q[n, k]_q cyclic MDS code. Let ℓ1,…,ℓs\ell_1, \ldots, \ell_s be distinct primes with s≥1s \geq 1, such that ℓi≥11\ell_i \geq 11 and (ℓi−1)/2(\ell_i - 1)/2 is prime for every 1≤i≤s1 \leq i \leq s. Then n≤q+1n \leq q + 1 in each of the following cases.

(1) n=2α3β5γ7δn = 2^{\alpha}3^{\beta}5^{\gamma}7^{\delta}, where α,β,γ,δ\alpha, \beta, \gamma, \delta are nonnegative integers.

(2) n=2α3β5γ7δ∏i=1sℓiein = 2^{\alpha}3^{\beta}5^{\gamma}7^{\delta} \prod_{i=1}^{s} \ell_i^{e_i}, where α≥1\alpha \geq 1 and β,γ,δ,e1,…,es\beta, \gamma, \delta, e_1, \ldots, e_s are nonnegative integers, such that for each 1≤i≤s1 \leq i \leq s, either ei≤2e_i \leq 2 or ℓi≥⌈p/2⌉\ell_i \geq \lceil p/2 \rceil.

(3) n=ℓien = \ell_i^e for some 1≤i≤s1 \leq i \leq s, where e≥3e \geq 3 and ℓi≥⌈p/2⌉\ell_i \geq \lceil p/2 \rceil.

Section 2 collects the background used in the proofs. We prove Theorems 1.1 and 1.2 in Section 3, and Theorem 1.3 in Section 4. Section 5 concludes this paper.