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.
%I A091470 #15 Feb 16 2025 08:32:52 %S A091470 3,65,15627,36625153 %N A091470 Number of n X n matrices with entries {-1,0,1} that are diagonalizable over the complex numbers. %C A091470 See A091472 for definition of diagonalizable and for Mathematica definitions. %H A091470 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/DiagonalizableMatrix.html">Diagonalizable Matrix</a> %H A091470 <a href="/index/Mat#binmat">Index entries for sequences related to binary matrices</a> %t A091470 Table[Count[Matrices[n, {-1, 0, 1}], _?DiagonalizableQ], {n, 4}] %o A091470 (Sage) %o A091470 import itertools %o A091470 def a(n): %o A091470 ans, W = 0, itertools.product([-1,0,1], repeat=n*n) %o A091470 for w in W: %o A091470 if Matrix(QQbar, n, n, w).is_diagonalizable(): ans += 1 %o A091470 return ans # _Robin Visser_, Sep 24 2023 %Y A091470 Cf. A091471, A091472. %K A091470 nonn,more %O A091470 1,1 %A A091470 _Eric W. Weisstein_, Jan 12 2004 %E A091470 a(4) from _Robin Visser_, Sep 24 2023