Why is there always an $[n, n-1, 2]$ linear code over $F_q$ for any $n \geq 2$?
2026-03-26 09:45:40.1774518340
Linear code over $F_q$ exists always
40 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
Well, the code is equivalent to a code with systematic generator matrix $$G = \left(\begin{array}{llllll} g_{11} & g_{12}& \ldots & g_{1,n-2} & g_{1,n-1} & g_{1n}\\ 0 & g_{22}&\ldots & g_{2,n-2} & g_{2,n-1} & g_{2n}\\ \vdots \\ 0 & 0 & \ldots & 0 & g_{n-1,n-1} & g_{n-1,n} \end{array}\right),$$ where the (diagonal) entries $g_{11},\ldots,g_{n-1,n-1}$ are nonzero. From here you see directly that the code has dimension $n-1$ and minimum Hamming distance 2.