A010091 Weight distribution of d=4 Hamming code of length 31.
1, 0, 1085, 22568, 247845, 1383096, 4414865, 8280720, 9398115, 6440560, 2648919, 628680, 82615, 5208, 155
Offset: 0
References
- F. J. MacWilliams and N. J. A. Sloane, The Theory of Error-Correcting Codes, Elsevier-North Holland, 1978, p. 129.
Crossrefs
Cf. A010086.
Programs
-
Mathematica
m:=31; RecurrenceTable[{a[n]==(Binomial[m, n-1]-a[n-1]-(m-n+2)*a[n-2])/n, a[0]==1, a[1]==0}, a, {n, 0, m}][[1;;m-2;;2]] (* Georg Fischer, Jul 14 2020; from the ref. p. 129 *)
Formula
a(n) = A010086(2n). - Alois P. Heinz, Jul 14 2020