cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-6 of 6 results.

A125587 Call an n X n matrix robust if the top left i X i submatrix is invertible for all i = 1..n. Sequence gives number of n X n robust real {0,1}-matrices.

Original entry on oeis.org

1, 4, 68, 5008, 1603232, 2224232640
Offset: 1

Views

Author

Keywords

Comments

An upper bound is the total number of {0,1}-matrices, 2^(n^2).
Comment from Michael Kleber, Jan 05 2006: A lower bound is 2^(n^2-n), A053763. For given the principal n-1 X n-1 submatrix A, the 2n-2 further entries (excluding the bottom right corner) can be filled in arbitrarily and then there is always at least one choice for the last entry which makes the matrix invertible.
Comment from N. J. A. Sloane, Jan 06 2006: Let the matrix be [A b; c d], where A is n-1 X n-1, b is n-1 X 1, c is 1 X n-1, d is 0 or 1. The matrix is singular iff d = c A^(-1) b, which for given A, b, c has at most one solution d.
Suppose A = identity, as in A125586. Then if d=0 there are 3^(n-1) choices for b and c, while if d=1 there are (n-1)*3^(n-2) choices for b and c. This proves the formula in A125586.

Examples

			a(2) = 4 from:
10 10 11 11
01 11 01 10
		

Crossrefs

Extensions

a(5) and a(6) from Brendan McKay, Jan 06 2007

A127182 Number of distinct characteristic polynomials of n X n real robust {0,1}-matrices.

Original entry on oeis.org

1, 2, 12, 156, 5612
Offset: 1

Views

Author

Artur Jasinski and Peter Pein (petsie(AT)dordos.net), Jan 07 2007

Keywords

Examples

			a(2)=2 because there are 4 binary robust 2 X 2 matrices, but only two distinct characteristic polynomials, namely y^2-y-1 and y^2-2y+1.
a(3)=12 because there are 12 different characteristic polynomials: -1-3y-y^2+y^3, 1-2y-y^2+y^3, 1+y-3y^2+y^3, -2+3y-3y^2+y^3, -1-2y-y^2+y^3, -1-y-y^2+y^3, -1+y-2y^2+y^3, 2-y-2y^2+y^3, -1+2y-3y^2+y^3, 1-y-2y^2+y^3, 1- 2y^2+y^3, -1+3y-3y^2+y^3.
		

Crossrefs

Programs

  • Mathematica
    mats[1] = {{{1}}}; mats[n_Integer?Positive] := mats[n] = Module[{newrows = Rest[Tuples[{0, 1}, {n}]], mp1 = Flatten[Function[k, Thread[(Append[ #1, #2]&)[ #1, k]]& /@ mats[n - 1]] /@ Tuples[{0, 1}, {n - 1}], 1]}, Flatten[MapThread[Function[{m, nl}, Append[m, # ]& /@ nl], {mp1, Pick[newrows, # =!= 0& /@ # ]& /@ (First /@ Dot[NullSpace /@ mp1, Transpose[newrows]])}], 1]] A127182[n_]=Length[Union[CharacteristicPolynomial[mats[n]]]]

A127186 Number of nonsingular n X n real {0,1}-matrices such that all upper left i X i submatrices are singular for i = 1..n-1.

Original entry on oeis.org

1, 2, 40, 3936, 1695296
Offset: 1

Views

Author

Artur Jasinski, Jan 08 2007

Keywords

Crossrefs

Programs

  • Mathematica
    check[x_,n_] := Catch@ Block[{m = Partition[ IntegerDigits[x, 2, n^2], n]}, Do[ If[ Det[m[[1 ;; k, 1 ;; k]]] != 0, Throw@ False], {k, n-1}]; Det[m] != 0]; a[n_] := Length@ Parallelize@ Select[ Range[0, 2^(n^2) - 1], check[#, n] &]; Array[a, 4] (* Giovanni Resta, Jul 23 2025 *)

Extensions

a(1) and a(4) corrected by Giovanni Resta, Jul 23 2025

A127183 Number of distinct irreducible characteristic polynomials of n X n real robust {0,1}-matrices.

Original entry on oeis.org

1, 1, 6, 88, 3719
Offset: 1

Views

Author

Artur Jasinski and Peter Pein (petsie(AT)dordos.net), Jan 07 2007

Keywords

Examples

			a(3)=6 because there are 6 different irreducible characteristic polynomials of 3 x 3 binary robust matrices: -1-2y-y^2+y^3,-1-2y-y^2+y^3, -1-y-y^2+y^3, -1+y-2y^2+y^3, -1+2y-3y^2+y^3, 1-y-2y^2+y^3.
		

Crossrefs

Formula

a(n) = A127182(n) - A127184(n).

A127184 Number of distinct reducible characteristic polynomials of n X n real robust {0,1}-matrices.

Original entry on oeis.org

0, 1, 6, 68, 1893
Offset: 1

Views

Author

Artur Jasinski and Peter Pein (petsie(AT)dordos.net), Jan 07 2007

Keywords

Crossrefs

Formula

a(n)=A127182(n)-A127183(n)

A127706 Number of nonsingular n X n real {0,1}-matrices n X n which are not robust (cf. A125587) nor in A127186.

Original entry on oeis.org

0, 0, 66, 13616, 9215792
Offset: 1

Views

Author

Artur Jasinski, Jan 24 2007

Keywords

Crossrefs

Formula

a(n) = A055165(n) - A125587(n) - A127186(n), for n > 1.

Extensions

Name and a(4) corrected by Giovanni Resta, Jul 23 2025
Showing 1-6 of 6 results.