OFFSET
1,2
COMMENTS
The formula was given by Derek Holt (mareg(AT)mimosa.csv.warwick.ac.uk) in this thread from sci.math: http://mathforum.org/discuss/sci.math/t/538859.
FORMULA
MATHEMATICA
a[n_] := With[{m = Quotient[n, 2]}, 2^(2 m^2 + 2 m Boole[OddQ[n]]) * QPochhammer[2^-m, 2, m]];
a /@ Range[1, 16] (* Jean-François Alcover, Sep 17 2019 *)
PROG
(GAP)
a:=function(n) local M;
M:=NullMat(n, n); for i in [1..n] do M[i][n+1-i]:=1; od;
return Size(Centralizer(GL(n, Integers mod 2), M * One(Integers mod 2)));
end; # Andrew Howroyd, Jul 13 2018
(PARI) a(n)={my(m=n\2); 2^(m*if(n%2, n+3, n)/2)*prod(i=2, m, 2^i-1)*2^binomial(m, 2)} \\ Andrew Howroyd, Jul 13 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Yuval Dekel (dekelyuval(AT)hotmail.com), Oct 24 2003
EXTENSIONS
a(8)-a(16) from Andrew Howroyd, Jul 13 2018
STATUS
approved