login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A118994
Number of real n X n symmetric (+1,-1) matrices with positive determinant.
3
1, 0, 16, 432, 8448, 282240, 81949952, 32715189248
OFFSET
1,3
MAPLE
F:= proc(n) local Q, q, X, x, t, A, ii, L, v;
Q:= [[1, 1], seq(seq([i, j], i=2..j), j=2..n)];
q:= nops(Q);
X:= [seq(x[q[1], q[2]], q=Q)];
t:= 0:
A:= Matrix(n, n, shape=symmetric, symbol=x);
A[2..n, 1]:= Vector(n-1, 1);
for ii from 0 to 2^q-1 do
L:= map(s -> 2*s-1, convert(2^q+ii, base, 2)[1..q]);
v:= LinearAlgebra:-Determinant(subs(zip(`=`, X, L), A));
if v > 0 then t:= t+1 fi
od;
2^(n-1)*t;
end proc:
seq(F(n), n=1..7); # Robert Israel, Apr 14 2016
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Giovanni Resta, May 08 2006
EXTENSIONS
a(8) from Robert Israel, Apr 17 2016
STATUS
approved