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!)
A192892 Number of n X n binary matrices whose determinants equal their permanents. 1

%I #36 Oct 01 2021 13:17:19

%S 1,2,12,343,34997,12515441,15749457081,72424550598849,

%T 1282759836215548737

%N Number of n X n binary matrices whose determinants equal their permanents.

%C Lower bounded by A088672.

%C Similar to A145675 and A145676.

%H Christopher Culter, <a href="https://github.com/Culter/PermDet">C++ code to compute large terms</a>

%H Math StackExchange, <a href="http://math.stackexchange.com/q/1707432/87023">What is the number of n X n binary matrices A such that det(A)=perm(A)?</a>

%F a(n) <= 2^(n^2), with equality for n<=1.

%e a(2) equals 12 because there are exactly twelve 2 X 2 binary matrices whose determinants equal their permanents; these matrices are:

%e |0 0| |1 0| |0 1| |1 1| |0 0| |1 0| |0 0| |1 0|

%e |0 0| |0 0| |0 0| |0 0| |1 0| |1 0| |0 1| |0 1|

%e .

%e |0 1| |1 1| |0 0| |1 0|

%e |0 1| |0 1| |1 1| |1 1|

%t Sum[KroneckerDelta[Det[Array[Mod[Floor[k/(2^(n*(#1 - 1) + #2 - 1))], 2] &, {n, n}]], Permanent[Array[Mod[Floor[k/(2^(n*(#1 - 1) + #2 - 1))], 2] &, {n, n}]]], {k, 0, (2^(n^2)) - 1}]

%o (Python)

%o from itertools import product

%o from sympy import Matrix

%o def A192892(n): return 1 if n == 0 else sum(1 for m in product([0,1],repeat=n**2) if (lambda x:x.det()==x.per())(Matrix(n,n,m))) # _Chai Wah Wu_, Oct 01 2021

%Y Cf. A046747, A087983, A089472, A089477, A145675, A145676.

%K hard,more,nonn,nice

%O 0,2

%A _John M. Campbell_, Jul 11 2011

%E a(0)=1 prepended and a(5)-a(8) from _Christopher Culter_, Apr 13 2016

%E Definition and example slightly modified by _Harvey P. Dale_, Feb 24 2017

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 19 23:15 EDT 2024. Contains 371798 sequences. (Running on oeis4.)