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.

A054918 Number of connected unlabeled digraphs with n nodes such that complement is also connected.

Original entry on oeis.org

1, 1, 10, 180, 9120, 1520742, 878908844, 1791588717764, 13024366540532952, 341234368845828951004, 32522226812040344643993088, 11366680383641301437820379768750, 14669062959091969068110415719779627436
Offset: 1

Views

Author

N. J. A. Sloane, May 24 2000

Keywords

Crossrefs

Programs

  • Mathematica
    A000273 = Cases[Import["https://oeis.org/A000273/b000273.txt", "Table"], {, }][[All, 2]];
    A003085 = Cases[Import["https://oeis.org/A003085/b003085.txt", "Table"], {, }][[All, 2]];
    a[n_] := 2*A003085[[n]] - A000273[[n + 1]];
    Array[a, 50] (* Jean-François Alcover, Aug 31 2019 *)
  • Python
    from functools import lru_cache
    from itertools import product, combinations
    from fractions import Fraction
    from math import prod, gcd, factorial
    from sympy import mobius, divisors
    from sympy.utilities.iterables import partitions
    def A054918(n):
        @lru_cache(maxsize=None)
        def b(n): return int(sum(Fraction(1<Chai Wah Wu, Jul 05 2024

Formula

a(n) = 2*A003085(n) - A000273(n).

Extensions

More terms from Vladeta Jovovic, Jul 19 2000