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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A000248 Number of forests with n nodes and height at most 1.
(Formerly M2857 N1148)
29
1, 1, 3, 10, 41, 196, 1057, 6322, 41393, 293608, 2237921, 18210094, 157329097, 1436630092, 13810863809, 139305550066, 1469959371233, 16184586405328, 185504221191745, 2208841954063318, 27272621155678841 (list; graph; refs; listen; history; internal format)
OFFSET

0,3

COMMENTS

Equivalently, number of idempotent mappings f from a set of n elements into itself (i.e. satisfying f o f = f). - Robert FERREOL (ferreol(AT)mathcurve.com), Oct 11 2007

a(n) is the number of ways to select a set partition of {1,2,...,n} and then designate one element in each block (cell) of the partition.

REFERENCES

L. Comtet, Advanced Combinatorics, Reidel, 1974, p. 91.

B. Harris and L. Schoenfeld, The number of idempotent elements in symmetric semigroups, J. Combin. Theory, 3 (1967), 122-135.

Nate Kube and Frank Ruskey, Sequences That Satisfy a(n-a(n))=0, Journal of Integer Sequences, Vol. 8 (2005), Article 05.5.5.

J. Riordan, Forests of labeled trees, J. Combin. Theory, 5 (1968), 90-103.

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).

R. P. Stanley, Enumerative Combinatorics, Cambridge, Vol. 2, 1999; see Problem 5.32(d).

LINKS

T. D. Noe, Table of n, a(n) for n=0..100

P. Flajolet and R. Sedgewick, Analytic Combinatorics, 2009; see page 131

G. Helms, Pascalmatrix tetrated [From Gottfried Helms (helms(AT)uni-kassel.de), Feb 04 2009]

INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 117

FORMULA

E.g.f.: exp(x*exp(x)).

G.f.: Sum_{k>=0} x^k/(1-k*x)^(k+1). - Vladeta Jovovic (vladeta(AT)eunet.rs), Oct 25 2003

a(n) = Sum_{k=0..n} C(n,k)*(n-k)^k. [From Paul D. Hanna (pauldhanna(AT)juno.com), Jun 26 2009]

MAPLE

A000248 := proc(n) local k; add(k^(n-k)*binomial(n, k).k=0..n); end; - Robert FERREOL (ferreol(AT)mathcurve.com), Oct 11 2007

restart:a:= proc(n) option remember; if n=0 then 1 else add (binomial (n-1, j) *(j+1) *a(n-1-j), j=0..n-1) fi end: seq (a(n), n=0..20); # [From Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Mar 28 2009]

MATHEMATICA

CoefficientList[Series[Exp[x Exp[x]], {x, 0, 20}], x]*Table[n!, {n, 0, 20}]

PROG

(PARI) a(n)=sum(k=0, n, binomial(n, k)*(n-k)^k) [From Paul D. Hanna (pauldhanna(AT)juno.com), Jun 26 2009]

CROSSREFS

First row of array A098697.

Row sums of A133399. [From Alois P. Heinz (heinz(AT)hs-heilbronn.de), Sep 19 2008]

Sequence in context: A151083 A140046 A116540 * A030927 A002627 A030802

Adjacent sequences:  A000245 A000246 A000247 * A000249 A000250 A000251

KEYWORD

easy,nonn,nice

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com), Simon Plouffe (simon.plouffe(AT)gmail.com)

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 12 07:07 EST 2012. Contains 205369 sequences.