OFFSET
0,3
COMMENTS
In formula X stands for the multiplication in a ring of GF(2)[ X ] polynomials.
LINKS
Vaclav Kotesovec, Table of n, a(n) for n = 0..475
Vaclav Kotesovec, Graph a(n+1)/a(n)
FORMULA
a(0) = 1, a(n) = n X a(n-1) (see the Maple function Xfactorial given below).
Using the notations introduced in A355891, we have a(n) = ivgenpoly(Product_{i=1..n} genpoly(n)). As an example, n = 6 corresponds to 1*x*(x+1)*x^2*(x^2+1)*(x^2+x) = x^8+x^4 in GF(2)[x], so a(6) = 2^8 + 2^4 = 272. - Jianing Song, Sep 30 2022
MAPLE
Xfactorial := proc(n) option remember; if n=0 then 1
else Xmult(n, Xfactorial(n-1)) fi
end:
Xmult := proc(n, m) option remember; if n=0 then 0
else Bits[Xor](((n mod 2)*m), Xmult(floor(n/2), m*2)) fi
end:
seq(Xfactorial(n), n=0..23);
MATHEMATICA
Xmult[nn_, mm_] := Module[{n = nn, m = mm, s = 0}, While[n > 0, If[1 == Mod[n, 2], s = BitXor[s, m]]; n = Floor[n/2]; m = m*2]; s];
Xfactorial[n_] := Xfactorial[n] = If[0 == n, 1, Xmult[n, Xfactorial[n - 1]] ];
Table[Xfactorial[n], {n, 0, 21}] (* Jean-François Alcover, Mar 04 2016, updated Mar 06 2016 after Maple *)
PROG
(PARI) a(n)=my(s=Mod(1, 2)); for(k=1, n, s*=Pol(binary(k))); fromdigits(Vec(lift(s)), 2) \\ Charles R Greathouse IV, Oct 03 2016
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Antti Karttunen, Jul 14 1999
STATUS
approved