Weight distribution of a class of p-ary codes
Abstract
Let p be a prime, and let N be a positive integer such that p is a primitive root modulo N. Define q = pe, where e = φ(N), and let Fq be the finite field of order q with Fp as its prime subfield. Denote by Tr the trace function from Fq to Fp. For α ∈ Fp and β ∈ Fq, let D be the set of nonzero solutions in Fq to the equation Tr(xq-1N + β x) = α. Writing D = \d1, …, dn\, we define the code Cα,β = \(Tr(d1 x), …, Tr(dn x)) : x ∈ Fq\. In this paper, we investigate the weight distribution of Cα,β for all α ∈ Fp and β ∈ Fq, with a focus on general odd primes p. When β = 0, we establish that Cα,0 is a two-weight code for any α ∈ Fp and compute its weight distribution. For β ≠ 0, we determine all possible weights of codewords in Cα,β, demonstrating that it has at most p+1 distinct nonzero weights. Additionally, we prove that the dual code C0,0 is optimal with respect to the sphere packing bound. These findings extend prior results to the broader case of any odd prime p.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.