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.

User: David desJardins

David desJardins's wiki page.

David desJardins has authored 3 sequences.

A058528 Number of n X n (0,1) matrices with all column and row sums equal to 4.

Original entry on oeis.org

1, 0, 0, 0, 1, 120, 67950, 68938800, 116963796250, 315031400802720, 1289144584143523800, 7722015017013984456000, 65599839591251908982712750, 769237071909157579108571190000, 12163525741347497524178307740904300
Offset: 0

Author

David desJardins, Dec 22 2000

Keywords

Comments

Further terms generated by a Mathematica program written by Gordon G. Cash, who thanks B. R. Perez-Salvador, Universidad Autonoma Metropolitana Unidad Iztapalapa, Mexico, for providing the algorithm on which this program was based.
Also number of ways to arrange 4n rooks on an n X n chessboard, with no more than 4 rooks in each row and column. - Vaclav Kotesovec, Aug 04 2013
Generally (Canfield + McKay, 2004), a(n) ~ exp(-1/2) * binomial(n,s)^(2*n) / binomial(n^2,s*n), or a(n) ~ sqrt(2*Pi) * exp(-n*s-1/2*(s-1)^2) * (n*s)^(n*s+1/2) * (s!)^(-2*n). - Vaclav Kotesovec, Aug 04 2013

Examples

			a(4) = 1 because there is only one possible 4 X 4 (0,1) matrix with all row and column sums equal to 4, the matrix of all 1's. a(5) = 120 = 5! because there are 5X4X3X2X1 ways of placing a zero in each successive column (row) so that it is not in the same row (column) as any previously placed.
		

References

  • B. R. Perez-Salvador, S. de los Cobos Silva, M. A. Gutierrez-Andrade and A. Torres-Chazaro, A Reduced Formula for Precise Numbers of (0,1) Matrices in a(R,S), Disc. Math., 2002, 256, 361-372.

Crossrefs

Column 4 of A008300. Row sums of A284991.

Formula

a(n) = 24^{-n} sum_{alpha +beta + gamma + mu + u =n}frac{3^{ gamma }(-6)^{beta +u }8^{ mu }(n!)^{2}(4alpha +2 gamma + mu )!(beta +2 gamma )!}{alpha!beta! gamma! mu!u!} sum_{i=0}^{ floor (beta +2 gamma )/2 }frac{1}{24^{alpha - gamma +i}2^{beta +2 gamma -i}i!(beta +2 gamma -2i)!(alpha - gamma +i)!} - Shanzhen Gao, Nov 07 2007
From Vaclav Kotesovec, Aug 04 2013: (Start)
a(n) ~ exp(-1/2)*C(n,4)^(2*n)/C(n^2,4*n), (Canfield + McKay, 2004).
a(n) ~ sqrt(Pi)*2^(2*n+3/2)*9^(-n)*exp(-4*n-9/2)*n^(4*n+1/2).
(End)

Extensions

More terms from Gordon G. Cash (cash.gordon(AT)epa.gov), Oct 22 2002
More terms from Vladeta Jovovic, Nov 12 2006

A058527 Number of 2n X 2n 0-1 matrices with n ones in each row and each column.

Original entry on oeis.org

1, 2, 90, 297200, 116963796250, 6736218287430460752, 64051375889927380035549804336, 108738182111446498614705217754614976371200, 34812290428176298285394893936773707951192224124239796250, 2188263032066768922535710968724036448759525154977348944382853301460850000
Offset: 0

Author

David desJardins, Dec 22 2000

Keywords

Crossrefs

Central coefficients of A008300.
Main diagonal of A376935.

Extensions

More terms (using dynamic programming in Python) from Greg Kuperberg, Feb 08 2001
More terms from Vladeta Jovovic, Nov 12 2006

A039745 Diameter of symmetric group S_n when generated by (1,2) and (1,2,3,...,n).

Original entry on oeis.org

0, 1, 2, 6, 11, 18, 25, 35, 45, 58, 71, 87, 103, 122, 141
Offset: 1

Keywords

Comments

a(n) is smallest number such that every element of S_n can be written as a product of at most a(n) terms each of which is the transposition (1,2) or the n-cycle (1,2,3,...,n).
The distinction between A039745 (this sequence) and A186783 comes from whether we treat the Cayley graph of the generating set as directed or undirected (alternatively, whether we allow multiplication by inverses of generators when constructing elements). A039745 deals with the directed Cayley graph, while A186783 deals with the undirected one. - Max Alekseyev, Sep 09 2011

Examples

			a(3)=2 because (1,3,2) = (1,2,3)(1,2).
		

Crossrefs

Cf. A378881 (antipodal permutations), A186144 (number of them).
Cf. A186783 (LRE diameter).

Programs

  • Mathematica
    a[n_] := GraphDiameter[CayleyGraph[SymmetricGroup[n]]] (* Ben Whitmore, Nov 13 2020 *)
  • Sage
    def a(n): return PermutationGroup([[(1,2)],[tuple(1..n)]]).cayley_graph().diameter() # Max Alekseyev, Mar 02 2010

Extensions

a(12)-a(13) by Ben Whitmore, Nov 12 2020
a(14) by Dmytro Fedoriaka, Jun 30 2025
a(15) by Dmytro Fedoriaka, Jul 14 2025