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.

A271570 Number of distinct eigenvalues of n X n matrices with elements {-1, 0, +1}.

Original entry on oeis.org

3, 21, 375, 24823
Offset: 1

Views

Author

Steven E. Thornton, Jul 13 2016

Keywords

References

  • Steven E. Thornton & Robert M. Corless, The Bohemian Eigenvalue Project, Poster Presented at The International Symposium on Symbolic and Algebraic Computation (ISSAC 2016). Wilfrid Laurier University, July 19-22, 2016.

Crossrefs

Number of characteristic polynomials: A272658.
Cf. A060722.

Programs

  • Mathematica
    (* Program not suitable to compute more than 3 terms *)
    a[n_] := Module[{r, iter}, iter = Table[{r[k], {-1, 0, 1}}, {k, 1, n^2}]; Eigenvalues /@ (Table[Table[(r[# + j]& /@ Range[n]), {j, 0, n^2 - n, n}], Sequence @@ iter // Evaluate] // Flatten[#, n^2 - 1]&) // Flatten // Union // Length];
    Table[an = a[n]; Print["a(", n, ") = ", an]; an, {n, 1, 3}] (* Jean-François Alcover, Jun 17 2018 *)

Formula

a(n) <= 3^(n^2). - Robert P. P. McKone, Sep 16 2023