login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A306792 Number of distinct eigenvalues of n X n matrices with elements {0, 1, 2}. 2
3, 25, 1027, 193244 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
S. E. Thornton, Properties of the Bohemian family of n x n matrices with population {0, 1, 2}, Characteristic Polynomial Database.
PROG
(Python)
from itertools import product
from sympy.matrices import Matrix
def a(n):
eigset = set()
for e in product([0, 1, 2], repeat=n*n):
if n > 1 and e[1] > e[n]: continue
M = Matrix([list(e[n*r:n*(r+1)]) for r in range(n)])
eigset |= set(eig for eig in M.eigenvals().keys())
return len(eigset)
print([a(n) for n in range(1, 3)]) # Michael S. Branicky, Mar 25 2021
CROSSREFS
Number of characteristic polynomials is in A272659.
Number of minimal polynomials is in A306783.
Sequence in context: A002021 A322063 A350902 * A012764 A219275 A101733
KEYWORD
nonn,more,hard
AUTHOR
Steven E. Thornton, Mar 10 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 08:27 EDT 2024. Contains 371964 sequences. (Running on oeis4.)