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

A001174 Number of oriented graphs (i.e., digraphs with no bidirected edges) on n unlabeled nodes. Also number of complete digraphs on n unlabeled nodes. Number of antisymmetric relations (i.e., oriented graphs with loops) on n unlabeled nodes is A083670.

Original entry on oeis.org

1, 2, 7, 42, 582, 21480, 2142288, 575016219, 415939243032, 816007449011040, 4374406209970747314, 64539836938720749739356, 2637796735571225009053373136, 300365896158980530053498490893399
Offset: 1

Views

Author

Keywords

References

  • F. Harary and E. M. Palmer, Graphical Enumeration, Academic Press, NY, 1973, p. 133, c_p.
  • M. D. McIlroy, Calculation of numbers of structures of relations on finite sets, Massachusetts Institute of Technology, Research Laboratory of Electronics, Quarterly Progress Reports, No. 17, Sept. 15, 1955, pp. 14-22.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Cf. A047656 (labeled case), A054941 (connected labeled case), A086345 (connected unlabeled case).

Programs

  • Mathematica
    permcount[v_] := Module[{m = 1, s = 0, k = 0, t}, For[i = 1, i <= Length[v], i++, t = v[[i]]; k = If[i > 1 && t == v[[i - 1]], k + 1, 1]; m *= t*k; s += t]; s!/m];
    edges[v_] := Sum[GCD[v[[i]], v[[j]]], {i, 2, Length[v]}, {j, 1, i - 1}] + Total @ Quotient[v - 1, 2];
    a[n_] := Module[{s = 0}, Do[s += permcount[p]*3^edges[p], {p, IntegerPartitions[n]}]; s/n!];
    Array[a, 15] (* Jean-François Alcover, Jul 06 2018, after Andrew Howroyd *)
  • PARI
    permcount(v) = {my(m=1,s=0,k=0,t); for(i=1,#v,t=v[i]; k=if(i>1&&t==v[i-1],k+1,1); m*=t*k;s+=t); s!/m}
    edges(v) = {sum(i=2, #v, sum(j=1, i-1, gcd(v[i],v[j]))) + sum(i=1, #v, (v[i]-1)\2)}
    a(n) = {my(s=0); forpart(p=n, s+=permcount(p)*3^edges(p)); s/n!} \\ Andrew Howroyd, Oct 23 2017
    
  • Python
    from itertools import combinations
    from math import prod, gcd, factorial
    from fractions import Fraction
    from sympy.utilities.iterables import partitions
    def A001174(n): return int(sum(Fraction(3**(sum(p[r]*p[s]*gcd(r,s) for r,s in combinations(p.keys(),2))+sum((q-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 15 2024

Formula

There's an explicit formula - see for example Harary and Palmer (book), Eq. (5.4.14).
a(n) ~ 3^(n*(n-1)/2)/n! [McIlroy, 1955]. - Vaclav Kotesovec, Dec 19 2016

Extensions

More terms from Vladeta Jovovic
Revised description from Vladeta Jovovic, Jan 20 2005

A083667 Number of antisymmetric binary relations on a set of n labeled points.

Original entry on oeis.org

1, 2, 12, 216, 11664, 1889568, 918330048, 1338925209984, 5856458868470016, 76848453272063549952, 3025216211508053707410432, 357271984146678126737757198336, 126579320351263180234426948827254784
Offset: 0

Views

Author

Goetz Pfeiffer (Goetz.Pfeiffer(AT)nuigalway.ie), May 02 2003

Keywords

Comments

Hankel transform of aeration of A110520. - Paul Barry, Sep 15 2009
The number of infinite sets per level n in the Collatz Tree partitioning the inverse iterates of the number m, where the value n is given by the number of odds in sequences which converge to m in the 3x+1 Problem, and m is a positive odd integer, not divisible by 3, for which the 3x+1 Problem holds. We get the entire Collatz (3x+1) Tree for the case m = 1. Otherwise, we get a portion of the tree. We can think of the infinite sets as residue classes modulo powers of 3. In this way Wirsching gets an abstract description of the Collatz Tree along with its underlying combinatorial structure. See Corollary 3.2 in Wirsching's paper. - Jeffrey R. Goodwin, Jul 26 2011
Let T_n denote the n X n matrix with T_n(i,j) = 3^(min(i,j)-1); then a(n) = det(T_(n+1)). - Lechoslaw Ratajczak, May 11 2021
The number of simple directed graphs (digraphs) on n labeled vertices, allowing for loops but restricting each pair of distinct vertices to have at most one directed edge between them, in either direction. These constraints define a structure where each vertex can have a loop, and for any two distinct vertices, there are three possible relationships: no edge, a directed edge from the first vertex to the second, or a directed edge from the second vertex to the first. - Constantinos Kourouzides, Mar 25 2024

Crossrefs

Cf. A083670.

Programs

  • GAP
    a := n -> 2^n * 3^Binomial(n, 2);
    
  • Maple
    A083667:=n->2^n*3^((n^2-n)/2); seq(A083667(n), n=0..15); # Wesley Ivan Hurt, Nov 30 2013
  • Mathematica
    Table[2^n*3^((n^2-n)/2), {n, 0, 15}] (* Wesley Ivan Hurt, Nov 30 2013 *)
  • PARI
    a(n)=2^n*3^((n^2-n)/2)

Formula

a(n) = 3*a(n-1)^2/a(n-2). - Michael Somos, Sep 16 2005
a(n) = 2^n * 3^((n*(n-1))/2).
2*Sum_{n>=2} 1/a(n) = 2*Sum_{n>=2} 2^(-n)*3^(-((n*(n-1))/2)) = Sum_{n>=1} 1/Product_{k=1..n} A008776(k) = Sum_{n>=1} 1/Product_{k=1..n} 2*3^k = 0.1760984543123346169209966002213.... - Alexander R. Povolotsky, Aug 08 2011

Extensions

Name simplified by Franklin T. Adams-Watters, Aug 07 2011

A101460 Number of connected antisymmetric relations on n unlabeled nodes.

Original entry on oeis.org

1, 2, 4, 32, 467, 15726, 1283648, 266995482, 145658273814, 212067643326874, 834200554714504905, 8952922576975709358534, 264287923205519914989471726, 21606715274151098406493353524694, 4921011141817073607674347572008576367
Offset: 0

Views

Author

Vladeta Jovovic, Jan 20 2005

Keywords

Crossrefs

Formula

Inverse Euler transform of A083670. - Andrew Howroyd, Oct 24 2019
Showing 1-3 of 3 results.