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.

A053420 Number of 4-multigraphs on n nodes.

Original entry on oeis.org

1, 5, 35, 900, 90005, 43571400, 95277592625, 925609100039625, 40119721052610123750, 7833164300852979350336250, 6953552738579427778531249187500, 28293472829338822230349054996265275000, 531350037528849507720092485196308155336875000
Offset: 1

Views

Author

Vladeta Jovovic, Jan 11 2000

Keywords

References

  • F. Harary and E. M. Palmer, Graphical Enumeration, Academic Press, NY, 1973.

Crossrefs

Column k=4 of A063841.

Programs

  • Python
    from itertools import combinations
    from math import prod, gcd, factorial
    from fractions import Fraction
    from sympy.utilities.iterables import partitions
    def A053420(n): return int(sum(Fraction(5**(sum(p[r]*p[s]*gcd(r,s) for r,s in combinations(p.keys(),2))+sum((q>>1)*r+(q*r*(r-1)>>1) for q, r in p.items())),prod(q**r*factorial(r) for q, r in p.items())) for p in partitions(n))) # Chai Wah Wu, Jul 09 2024

Extensions

Terms a(12) and beyond from Andrew Howroyd, Oct 22 2017