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!)
A001429 Number of n-node connected unicyclic graphs.
(Formerly M1438 N0568)
37

%I M1438 N0568 #93 Feb 14 2024 19:53:53

%S 1,2,5,13,33,89,240,657,1806,5026,13999,39260,110381,311465,880840,

%T 2497405,7093751,20187313,57537552,164235501,469406091,1343268050,

%U 3848223585,11035981711,31679671920,91021354454,261741776369,753265624291,2169441973139,6252511838796

%N Number of n-node connected unicyclic graphs.

%C Also unlabeled connected simple graphs with n vertices and n edges. The labeled version is A057500. - _Gus Wiseman_, Feb 12 2024

%D R. C. Read and R. J. Wilson, An Atlas of Graphs, Oxford, 1998.

%D J. Riordan, An Introduction to Combinatorial Analysis, Wiley, 1958, p. 150.

%D N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).

%D N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

%H Andrew Howroyd, <a href="/A001429/b001429.txt">Table of n, a(n) for n = 3..500</a>

%H Washington G. Bomfim, <a href="http://commons.wikimedia.org/wiki/File:The21.GIF">A picture of the twenty one unicycles with 3,4,5 and 6 vertices</a>

%H Audace A. V. Dossou-Olory, <a href="https://arxiv.org/abs/1812.02422">Graphs and unicyclic graphs with extremal connected subgraphs</a>, arXiv:1812.02422 [math.CO], 2018.

%H R. K. Guy, <a href="/A000081/a000081.pdf">Letter to N. J. A. Sloane, 1988-04-12</a> (annotated scanned copy) Includes illustrations for n <= 6.

%H R. K. Guy, <a href="/A005347/a005347.pdf">The Second Strong Law of Small Numbers</a>, Math. Mag, 63 (1990), no. 1, 3-20. [Annotated scanned copy]

%H S. Karim, J. Sawada, Z. Alamgirz and S. M. Husnine, <a href="https://doi.org/10.1016/j.tcs.2012.11.024">Generating bracelets with fixed content</a>, Theoretical Computer Science, Volume 475, 4 March 2013, Pages 103-112.

%H Richard J. Mathar, <a href="https://arxiv.org/abs/1808.06264">Counting Connected Graphs without Overlapping Cycles</a>, arXiv:1808.06264 [math.CO], 2018.

%H Marko Riedel et al., <a href="https://math.stackexchange.com/questions/2992385/">Non-isomorphic, connected, unicyclic graphs</a>, Math Stackexchange, November 2018. (Derivation of algorithm and Maple implementation using PET.)

%H Marko Riedel, <a href="/A001429/a001429_1.maple.txt">Maple implementation using PET.</a>

%H M. L. Stein and P. R. Stein, <a href="https://digital.library.unt.edu/ark:/67531/metadc864419/">Enumeration of Linear Graphs and Connected Linear Graphs up to p = 18 Points</a>, Report LA-3775, Los Alamos Scientific Laboratory of the University of California, Los Alamos, NM, Oct 1967. doi: 10.2172/4180737.

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/UnicyclicGraph.html">Unicyclic Graph</a>

%F a(n) = A068051(n) - A027852(n) - A000081(n).

%e From _Gus Wiseman_, Feb 12 2024: (Start)

%e Representatives of the a(3) = 1 through a(6) = 13 simple graphs:

%e {12,13,23} {12,13,14,23} {12,13,14,15,23} {12,13,14,15,16,23}

%e {12,13,24,34} {12,13,14,23,25} {12,13,14,15,23,26}

%e {12,13,14,23,45} {12,13,14,15,23,46}

%e {12,13,14,25,35} {12,13,14,15,26,36}

%e {12,13,24,35,45} {12,13,14,23,25,36}

%e {12,13,14,23,25,46}

%e {12,13,14,23,45,46}

%e {12,13,14,23,45,56}

%e {12,13,14,25,26,35}

%e {12,13,14,25,35,46}

%e {12,13,14,25,35,56}

%e {12,13,14,25,36,56}

%e {12,13,24,35,46,56}

%e (End)

%t Needs["Combinatorica`"];

%t nn=30;s[n_,k_]:=s[n,k]=a[n+1-k]+If[n<2k,0,s[n-k,k]];a[1]=1;a[n_]:=a[n]=Sum[a[i]s[n-1,i]i,{i,1,n-1}]/(n-1);rt=Table[a[i],{i,1,nn}];Apply[Plus,Table[Take[CoefficientList[CycleIndex[DihedralGroup[n],s]/.Table[s[j]->Table[Sum[rt[[i]]x^(k*i),{i,1,nn}],{k,1,nn}][[j]],{j,1,nn}],x],nn],{n,3,nn}]] (* _Geoffrey Critzer_, Oct 12 2012, after code given by _Robert A. Russell_ in A000081 *)

%t (* Second program: *)

%t TreeGf[nn_] := Module[{A}, A = Table[1, {nn}]; For[n = 1, n <= nn 1, n++, A[[n + 1]] = 1/n * Sum[Sum[ d*A[[d]], {d, Divisors[k]}]*A[[n - k + 1]], {k, 1, n}]]; x A.x^Range[0, nn-1]];

%t seq[n_] := Module[{t, g}, If[n < 3, {}, t = TreeGf[n - 2]; g[e_] := Normal[t + O[x]^(Quotient[n, e]+1)] /. x -> x^e + O[x]^(n+1); Sum[Sum[ EulerPhi[d]*g[d]^(k/d), {d, Divisors[k]}]/k + If[OddQ[k], g[1]* g[2]^Quotient[k, 2], (g[1]^2 + g[2])*g[2]^(k/2-1)/2], {k, 3, n}]]/2 // Drop[CoefficientList[#, x], 3]&];

%t seq[32] (* _Jean-François Alcover_, Oct 05 2019, after _Andrew Howroyd_'s PARI code *)

%o (PARI) \\ TreeGf gives gf of A000081

%o TreeGf(N)={my(A=vector(N, j, 1)); for (n=1, N-1, A[n+1] = 1/n * sum(k=1, n, sumdiv(k, d, d*A[d]) * A[n-k+1] ) ); x*Ser(A)}

%o seq(n)={if(n<3, [], my(t=TreeGf(n-2)); my(g(e)=subst(t + O(x*x^(n\e)),x,x^e) + O(x*x^n)); Vec(sum(k=3, n, sumdiv(k, d, eulerphi(d)*g(d)^(k/d))/k + if(k%2, g(1)*g(2)^(k\2), (g(1)^2+g(2))*g(2)^(k/2-1)/2))/2))} \\ _Andrew Howroyd_, May 05 2018

%Y For at most one cycle we have A005703, labeled A129271, complement A140637.

%Y Next-to-main diagonal of A054924. Cf. A000055.

%Y The labeled version is A057500, connected case of A137916.

%Y This is the connected case of A137917 and A236570.

%Y Row k = 1 of A137918.

%Y The version with loops is A368983.

%Y A001349 counts unlabeled connected graphs.

%Y A001434 and A006649 count unlabeled graphs with # vertices = # edges.

%Y A006129 counts covering graphs, unlabeled A002494.

%Y 
Cf. A014068, A054548, A116508, A133686, A140638, A369143, A369201.

%K nonn,nice

%O 3,2

%A _N. J. A. Sloane_

%E More terms from Ronald C. Read

%E a(27) corrected, more terms, formula from _Christian G. Bower_, Feb 12 2002

%E Edited by _Charles R Greathouse IV_, Oct 05 2009

%E Terms a(30) and beyond from _Andrew Howroyd_, May 05 2018

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 25 11:06 EDT 2024. Contains 371967 sequences. (Running on oeis4.)