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-3 of 3 results.

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

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)
Showing 1-3 of 3 results.