

A272659


Number of distinct characteristic polynomials of n X n matrices with elements {0, 1, 2}.


15




OFFSET

0,2


LINKS

Robert M. Corless, Bohemian Eigenvalues, Talk Presented at Computational Discovery in Mathematics (ACMES 2), University of Western Ontario, May 12 2016. (Talk based on joint work with Steven E. Thornton, Sonia Gupta, Jonathan BrinoTarasoff, Venkat Balasubramanian.)


PROG

(Python)
from itertools import product
from sympy import Matrix
def A272659(n): return len({tuple(Matrix(n, n, p).charpoly().as_list()) for p in product(range(3), repeat=n**2)}) if n else 1 # Chai Wah Wu, Sep 30 2023


CROSSREFS



KEYWORD

nonn,more


AUTHOR



EXTENSIONS



STATUS

approved



