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-1 of 1 results.

A127909 Number of different digraphs on n unlabeled nodes which are not graphs.

Original entry on oeis.org

0, 0, 1, 12, 207, 9574, 1540788, 882032396, 1793359180502, 13027956824124884, 341260431952960575184, 32522909385055885092199576, 11366745430825400574268802831632, 14669085692712929869037045573284852976, 70315656615234999521385506526925748433982432
Offset: 0

Views

Author

Jonathan Vos Post, Feb 06 2007

Keywords

Comments

A digraph is (isomorphic to) a graph if every pair of points a, b joined by a directed edge (a,b) also has the reverse directed edge (b,a). A digraph which is not a graph is a digraph with at least one pair of points which have only one directed edge connecting them.

Examples

			a(2) = 1 because with two points a and b, either there are no edges connecting them, or there is one directed edge between them, or there is a bidirectional pair of edges between them; only the case with one directed edge is the unique 2-point digraph which is not a graph.
		

Crossrefs

Programs

  • Python
    from itertools import combinations
    from math import prod, factorial, gcd
    from fractions import Fraction
    from sympy.utilities.iterables import partitions
    def A127909(n): return int(sum(Fraction((1<>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 05 2024

Formula

a(n) = A000273(n) - A000088(n).
Showing 1-1 of 1 results.