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!)
A365926 Number of distinct characteristic polynomials for n X n matrices with entries in {0, 1, ..., n-1}. 3
1, 1, 6, 513 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
a(4) >= 308696.
LINKS
MATHEMATICA
a[n_] := Module[{polynomials = {}, polynomial}, Monitor[Do[polynomial = CharacteristicPolynomial[ArrayReshape[IntegerDigits[i, n, n^2], {n, n}], x]; If[Not[MemberQ[polynomials, polynomial]], AppendTo[polynomials, polynomial]]; , {i, 0, n^(n^2) - 1}], {n, {i, n^(n^2) - 1}, ProgressIndicator[i, {0, n^(n^2) - 1}]}]; Length[polynomials]]; Table[a[n], {n, 1, 3}]
PROG
(Python)
from itertools import product
from sympy import Matrix
def A365926(n): return len({tuple(Matrix(n, n, p).charpoly().as_list()) for p in product(range(n), repeat=n**2)}) if n else 1 # Chai Wah Wu, Sep 30 2023
CROSSREFS
Sequence in context: A223050 A290937 A364482 * A250391 A003395 A222607
KEYWORD
nonn,hard,more,bref
AUTHOR
Robert P. P. McKone, Sep 23 2023
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 August 11 14:49 EDT 2024. Contains 375072 sequences. (Running on oeis4.)