login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A126100 Number of rooted connected unlabeled graphs on n nodes. 6

%I #32 Sep 02 2023 04:37:35

%S 0,1,1,3,11,58,407,4306,72489,2111013,111172234,10798144310,

%T 1944301471861,650202565436890,404697467417019634,

%U 470133531223369393920,1022561022228933341815171,4177761667636803276899047351,32163582481439081597751699343141,468019937132164016636736323752098741

%N Number of rooted connected unlabeled graphs on n nodes.

%C Let G run through all connected unlabeled graphs on n nodes. Add up the numbers of inequivalent nodes (under Aut(G)) for each G.

%C "Pointed" connected graphs. This has the same relation to A001349 as A000081 does to A000055.

%C a(0) = 0 because the empty graph cannot be rooted.

%H Andrew Howroyd, <a href="/A126100/b126100.txt">Table of n, a(n) for n = 0..50</a> (terms 0..23 from David Applegate and N. J. A. Sloane)

%F The g.f. A(x) = x+x^2+3*x^3+11*x^4+... satisfies f(x) = 1 + A(x)*g(x), where f(x) = 1+x+2*x^2+6*x^3+20*x^4+... is the g.f. for A000666 and g(x) = 1+x+2*x^2+4*x^3+11*x^4+... is the g.f. for A000088. - _Brendan McKay_

%e For 3 nodes G is either a path (2 kinds of nodes) or a triangle (one kind of node), for a total of a(3) = 3.

%e For the 5-vertex graphs we have 2 * 1 orbit, 6 * 2 orbits, 8 * 3 orbits, 5 * 4 orbits for a total of 2 + 12 + 24 + 20 = 58.

%t 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];

%t edges[v_] := Sum[GCD[v[[i]], v[[j]]], {i, 2, Length[v]}, {j, 1, i - 1}] + Total[Quotient[v, 2]];

%t g[n_, r_] := (s = 0; Do[s += permcount[p]*(2^(r*Length[p] + edges[p])), {p, IntegerPartitions[n]}]; s/n!);

%t seq[m_] := Sum[g[n-1, 1] x^(n-1), {n, 0, m}]/Sum[g[n-1, 0] x^(n-1), {n, 0, m}] + O[x]^m // CoefficientList[#, x]& // Prepend[#, 0]&;

%t seq[20] (* _Jean-François Alcover_, Jul 09 2018, after _Andrew Howroyd_ *)

%o (PARI)

%o 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}

%o edges(v) = {sum(i=2, #v, sum(j=1, i-1, gcd(v[i],v[j]))) + sum(i=1, #v, v[i]\2)}

%o g(n,r) = {my(s=0); forpart(p=n, s+=permcount(p)*(2^(r*#p+edges(p)))); s/n!}

%o seq(n)={concat([0], Vec(Ser(vector(n, n, g(n-1,1)))/Ser(vector(n, n, g(n-1,0)))))} \\ _Andrew Howroyd_, May 03 2018

%Y Cf. A001349, A126101, A000666, A000088, A126201, A303831 (birooted), A304311.

%Y Cf. A000081, A000055.

%K nonn,nice

%O 0,4

%A _David Applegate_ and _N. J. A. Sloane_, Mar 05 2007

%E a(5)-a(9) computed by _Gordon F. Royle_, Mar 05 2007

%E a(10) and a(11) computed by _Brendan McKay_, Mar 05 2007

%E a(12) onwards computed from the generating function, A000088 and A000666 by _David Applegate_ and _N. J. A. Sloane_, Mar 06 2007

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 16:05 EDT 2024. Contains 371749 sequences. (Running on oeis4.)