login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A003692 Number of trees on n labeled vertices with degree at most 3. 4
1, 1, 3, 16, 120, 1170, 14070, 201600, 3356640, 63730800, 1359666000, 32212857600, 839350512000, 23860289653200, 734964075846000, 24388126963200000, 867393811956672000, 32919980214689568000 (list; graph; refs; listen; history; internal format)
OFFSET

0,3

LINKS

Index entries for sequences related to trees

FORMULA

E.g.f.: ((1-x)(2-x-x^2) - (2-x+x^2)sqrt{1-2x-x^2}) / (3x^3).

Comment from Brendan McKay, May 24 2010: The number of labelled trees with d[i] vertices of degree i for i=1,2,3 is (n-1)! * n! / (2^d[3] * d[3]! * d[2]! * d[1]!).  Now sum over d[1]+d[2]+d[3]=n, d[1]+2*d[2]+3*d[3] = 2n-2.

Comment from Georgi Guninski, May 24 2010: This seems to hold up to 3000 terms:

a[n+1]=(-a[n-1]*a[n] - (-3*a[n]**2 + (2/3)*a[n-2]*a[n]*n+

(-4/3)*a[n-1]*a[n]*n+ (-4/3)*a[n]**2*n+ (-1/3)*a[n-2]*a[n]*n**2+

(-2/3)*a[n-1]*a[n]*n**2)) / (a[n-1]+ (-1/3)*a[n] -2*a[n-2]*n+

2*a[n-1]*n+a[n-2]*n**2) where a[n] == A003692.

PROG

(Sage program from Doug McNeil, May 24 2010):

sage: gf = ((1-x)*(2-x-x**2) - (2-x+x**2)*(1-2*x-x**2)**(1/2)) / (3*x**3)

sage: c = taylor(gf, x, 0, 12).coefficients()

sage: c

[[1, 0], [1, 1], [3/2, 2], [8/3, 3], [5, 4], [39/4, 5], [469/24, 6],

[40, 7], [333/4, 8], [1405/8, 9], [5995/16, 10], [807, 11], [42055/24,

12]]

sage: sq = [a*factorial(b) for a, b in cc]

sage: sq

[1, 1, 3, 16, 120, 1170, 14070, 201600, 3356640, 63730800, 1359666000,

32212857600, 839350512000]

CROSSREFS

Sequence in context: A136168 A200318 A120015 * A166883 A145158 A132070

Adjacent sequences:  A003689 A003690 A003691 * A003693 A003694 A003695

KEYWORD

nonn

AUTHOR

apost(AT)math.mit.edu (Alex Postnikov)

EXTENSIONS

More terms and g.f. edited by Franklin T. Adams-Watters (FrankTAW(AT)Netscape.net), May 24 2010

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 10:53 EST 2012. Contains 205904 sequences.