Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A141610
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A141610 Number of rooted trees with n points and exactly k specified colors: C(n,k), 0<n, 0<k<=n. +0
1
1, 1, 2, 2, 10, 9, 4, 44, 102, 64, 9, 196, 870, 1304, 625, 20, 876, 6744, 18200, 20080, 7776, 48, 4020, 50421, 218260, 416500, 362322, 117649, 115, 18766, 371676, 2427600, 7133655, 10465290, 7503328, 2097152, 286, 89322, 2731569, 25919692 (list; table; graph; listen)
OFFSET

1,3

COMMENT

The number of rooted trees with n points having any of c colors is \sum_k C(n,k) {c choose k}.

REFERENCES

J. Riordan, The numbers of labeled colored and chromatic trees, Acta Mathematica, 97 (1957), 211-225.

LINKS

J. Riordan, The numbers of labeled colored and chromatic trees.

EXAMPLE

C(n,1) is the number of rooted trees with n points (A81). C(n,n)=n^{n-1}. C(3,2)=10 is the number of rooted trees with three points and two colors: AAB, ABB, ABA, BAA, BAB, BBA, A(BB), A(AB), B(AA), B(AB), where ABC is a rooted tree with A the root, B attached to A and C; A(BC) is a rooted tree with A the root, A attached to B and C.

MATHEMATICA

Contribution from Robert A. Russell (russell(AT)post.harvard.edu), Sep 03 2008: (Start)

p[a_List]:=a; p[a_List, b_List, c___List]:=If[Length[a]

<=Length[b], p[PadRight[a, Length[b]]+b, c], p[b, a, c]];

c[i_, j_]:=If[i<j, c[j, i], PadLeft[Table

[Binomial[j, k]Binomial[i+k, j], {k, 0, j}], i+j]];

t[a_List, b_List]:=Apply[p, Outer[c, Range[Length[a]],

Range[Length[b]]]Outer[Times, a, b], {0, 1}];

s[n_, k_]:=s[n, k]=p[If[n<2k, {0}, s[n-k, k]], a[n+1-k]];

a[1]={1}; a[n_]:=a[n]=Apply[p, Table

[t[a[i], s[n-1, i]]i, {i, 1, n-1}]]/(n-1);

Flatten[Table[a[i], {i, 1, 10}]]

(End)

CROSSREFS

C(n,1) is A000081. C(n,n) is A000169. [From Robert A. Russell (russell(AT)post.harvard.edu), Sep 03 2008]

Sequence in context: A094359 A129898 A135996 this_sequence A019241 A032005 A147801

Adjacent sequences: A141607 A141608 A141609 this_sequence A141611 A141612 A141613

KEYWORD

nonn,tabl

AUTHOR

Robert A. Russell (russell(AT)post.harvard.edu), Aug 22 2008, Aug 27 2008

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 2 15:58 EST 2008. Contains 150992 sequences.


AT&T Labs Research