This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A060226 a(n) = n^n - n*(n-1)^(n-1). 3
 1, 0, 2, 15, 148, 1845, 27906, 496951, 10188872, 236425545, 6125795110, 175311670611, 5492360400924, 186965800764925, 6871755333266474, 271213787997489135, 11440441827615801616, 513645612633274386705 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,3 COMMENTS For n > 0, a(n)= number of endofunctions of [n] mapping some x<>1 to 1. - Len Smiley, Nov 15 2001 (Endofunction interpretation from a(n) = n*(n^(n-1) - (n-1)^(n-1)).) LINKS Harry J. Smith, Table of n, a(n) for n = 0..100 D. Callan, A Bijection between Marked Trees Leonard Smiley, Problem 10781, Amer. Math. Monthly, 107, Feb. 2000, p. 176. FORMULA a(n) = n*A055869(n-1). As n increases, a(n)/a(n-1) - a(n-1)/a(n-2) tends towards e. E.g.f.: (1-x)/(1-T), where T=T(x) is Euler's tree function (see A000169). The e.g.f. for n > 0 terms only (applicable to endofunctions) is (T - x)/(1 - T). - Len Smiley, Dec 10 2001 MAPLE f := n->n*sum(binomial(n-1, j-1)*(n-1)^(n-j), j=2..n); g := n->n^n-n*(n-1)^(n-1); h := n->sum( binomial(n, j)*j^(j-1)*(n-j)^(n-j), j=2..n); k := n->sum(binomial(n, j-1)*(j-1)^(j-1)*(n-j)^(n-j), j=2..n); # then a(n)=f(n)=g(n)=k(n) MATHEMATICA Join[{1, 0}, Table[n^n-n*(n-1)^(n-1), {n, 2, 20}]] (* Harvey P. Dale, Nov 16 2012 *) PROG (PARI) { for (n=0, 100, write("b060226.txt", n, " ", n^n - n*(n - 1)^(n - 1)); ) } \\ Harry J. Smith, Jul 03 2009 (Haskell) a060226 0 = 1 a060226 n = a000312 n - n * a000312 (n - 1) -- Reinhard Zumkeller, Aug 27 2012 CROSSREFS Cf. A000312, A045531, A055869. Sequence in context: A253571 A111686 A001854 * A325060 A002103 A191364 Adjacent sequences:  A060223 A060224 A060225 * A060227 A060228 A060229 KEYWORD nonn AUTHOR Henry Bottomley, Jul 12 2001 STATUS approved

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

Last modified July 23 03:00 EDT 2019. Contains 325230 sequences. (Running on oeis4.)