cp's OEIS Frontend

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.

Showing 1-2 of 2 results.

A121231 Number of n X n binary matrices M (that is, real matrices with entries 0 and 1) such that M^2 is also a binary matrix.

Original entry on oeis.org

1, 2, 11, 172, 6327, 474286, 67147431, 17080038508
Offset: 0

Views

Author

Dan Dima, Aug 21 2006

Keywords

Comments

Comments from Brendan McKay, Aug 21 2006: Equivalently, directed graphs (simple but loops allowed) without a few small forbidden subgraphs (those allowing 2 distinct paths of length 2 from vertex x to vertex y for some x,y; I think there are 6 possibilities). One can also consider isomorphism classes of those digraphs.
Comment from Rob Pratt, Aug 03 2008: A121294 provides a lower bound on the maximum number of 1's in such a matrix M. There are cases where a higher number is reached; the following 5 X 5 matrix has 11 ones and its square is binary:
0 0 1 0 0
0 0 0 0 1
1 1 0 0 1
1 1 0 1 0
1 1 0 1 0.
The optimal values seem to match A070214, verified for n <= 7.
Term (5,1) of the n-th power of the 5 X 5 matrix shown is A001045(n), the Jacobsthal sequence. - Gary W. Adamson, Oct 03 2008
a(n) >= A226321(n).

Crossrefs

Extensions

Edited by R. J. Mathar, Oct 01 2008
a(7) from R. H. Hardin, Jun 19 2012. This makes it clear that the old A122527 was really a badly-described version of this sequence, and that a(7) was earlier found by Balakrishnan (bvarada2(AT)jhu.edu), Sep 17 2006. - N. J. A. Sloane, Jun 19 2012
Entry revised by N. J. A. Sloane, Jun 19 2012

A225371 a(n) = number of squares in M(n,2), the ring of n X n matrices over GF(2).

Original entry on oeis.org

1, 2, 10, 260, 31096, 13711952, 28275659056, 224402782202048, 7293836994286696576, 952002419516769475035392, 497678654312172407869125822976, 1044660329769242614113093804053562368, 8745525723307044762290950664928498588583936
Offset: 0

Views

Author

N. J. A. Sloane, May 07 2013

Keywords

Comments

a(0)-a(4) computed by W. Edwin Clark, May 07 2013.
A226321 is a similar sequence which counts the real {0,1} matrices which are the square of a {0,1} matrix. - Giovanni Resta, Jun 03 2013

Crossrefs

Programs

  • PARI
    a(n)=#vecsort(lift(vector(2^n^2,k,matrix(n,n,i,j,bittest(k,(i-1)*n+j-1))^2*Mod(1,2))),,8) \\ Charles R Greathouse IV, May 07 2013
    
  • PARI
    ZM(k)=matrix(n,n,i,j,bittest(k,(i-1)*n+j-1))*Mod(1,2)
    MZ(M)=my(n=matsize(M)[1]);sum(i=1,n,sum(j=1,n,M[i,j]<<((i-1)*n+j-1)))
    a(n)=#vecsort(vector(2^n^2,i,MZ(lift(ZM(i,n)^2))),,8) \\ Charles R Greathouse IV, May 07 2013

Extensions

a(5)-a(6) from Giovanni Resta, May 08 2013
a(7)-a(30) from Victor S. Miller, May 24 2013
Showing 1-2 of 2 results.