Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #28 Sep 30 2023 18:19:39
%S 1,2,6,32,333,8927,758878
%N Number of distinct characteristic polynomials of n X n matrices with elements {0, 1}.
%D 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 Brino-Tarasoff, Venkat Balasubramanian.)
%H Robert M. Corless, Steven E. Thornton, Sonia Gupta, Jonathan Brino-Tarasoff, Venkat Balasubramanian, <a href="https://s3.amazonaws.com/stevenethornton.github/BHIME+Slides.pdf">Slides from "Bohemian Eigenvalues" talk</a>.
%H Robert Israel, <a href="/A272661/a272661.txt">Examples for n=5</a>
%o (MATLAB)
%o function count = A272661(N)
%o C = zeros(0,N);
%o count = 0;
%o V = zeros(1,N);
%o L = -floor(N/2) + [0:N-1];
%o for x = 0:2^(N^2)-1;
%o r = dec2bin(x+2^(N^2))-'0';
%o A = reshape(r(2:end),N,N);
%o rowcounts = sum(A,2);
%o colcounts = sum(A,1);
%o if ~issorted(rowcounts)|| rowcounts(N) < max(colcounts)
%o continue
%o end
%o for i = 1:N
%o V(i) = round(det(A - L(i)*eye(N)));
%o end
%o if ~ismember(V, C, 'rows')
%o count = count+1;
%o C(count,:) = V;
%o end
%o end
%o end % _Robert Israel_, Aug 18 2016
%o (Python)
%o from itertools import product
%o from sympy import Matrix
%o def A272661(n): return len({tuple(Matrix(n,n,p).charpoly().as_list()) for p in product((0,1),repeat=n**2)}) if n else 1 # _Chai Wah Wu_, Sep 30 2023
%Y Six classes of matrices mentioned in Rob Corless's talk: A272658, A272659, A272660, A272661, A272662, A272663.
%K nonn,more
%O 0,2
%A _N. J. A. Sloane_, May 15 2016
%E a(5) from _Robert Israel_, Aug 18 2016
%E a(6) from _Steven E. Thornton_, Mar 09 2019
%E a(0)=1 prepended by _Alois P. Heinz_, Sep 28 2023