A085656 Number of positive-definite real {0,1} n X n matrices.
1, 3, 27, 681, 43369, 6184475, 1688686483, 665444089745
Offset: 1
Examples
For n = 2 the three matrices are {{{1, 0}, {0, 1}}, {{1, 0}, {1, 1}}, {{1, 1}, {0, 1}}}.
Links
- Eric Weisstein's World of Mathematics, (0,1)-Matrix
- Eric Weisstein's World of Mathematica, Positive Definite Matrix
- Index entries for sequences related to binary matrices
Crossrefs
Programs
-
Mathematica
Table[Count[Tuples[{0, 1}, {n, n}], ?PositiveDefiniteMatrixQ], {n, 4}] (* _Eric W. Weisstein, Jan 03 2021 *)
-
PARI
{ a(n) = M=matrix(n,n,i,j,2*(i==j)); r=0; b(1); r } { b(k) = local(t); if(k>n, t=0; for(i=1,n, for(j=1,i-1, if(M[i,j]==1,t++); )); r+=2^t; return; ); forvec(x=vector(k-1,i,[0,1]), for(i=1,k-1,M[k,i]=M[i,k]=x[i]); if( matdet(vecextract(M,2^k-1,2^k-1),1)>0, b(k+1) ) ) } (Alekseyev)
Extensions
More terms from Max Alekseyev, Dec 13 2005
Comments