[go: up one dir, main page]

login
A080636
Number of real invertible (0,1) n X n matrices with (-1,0,1) inverses.
0
1, 4, 28, 334, 7906
OFFSET
1,2
EXAMPLE
{{1,1,1,1,0},{1,1,1,0,1},{1,1,1,1,1},{1,0,1,1,0},{0,1,1,0,0}} qualifies since its inverse is
{{1,1,-1,0,-1},{1,0,0,-1,0},{-1,0,0,1,1},{0,-1,1,0,0},{-1,0,1,0,0}}
MATHEMATICA
triamat[li_List] := (*see A086900*); Table[it=triamat/@IntegerDigits[Range[0, -1+2^(n(n+1)/2)], 2, n(n+1)/2]; Count[it, (q_?MatrixQ)/; Det[q]=!=0 && Union[Flatten[{Inverse[q], {-1, 0, 1}}]]==={-1, 0, 1}], {n, 5}]
CROSSREFS
Sequence in context: A198513 A113371 A280570 * A223887 A140425 A377551
KEYWORD
hard,nonn
AUTHOR
Wouter Meeussen, Aug 25 2003
STATUS
approved