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

 

Logo

Annual Appeal: Please make a donation to keep the OEIS running. In 2018 we replaced the server with a faster one, added 20000 new sequences, and reached 7000 citations (often saying "discovered thanks to the OEIS").
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A126232 Number of functions f:{1,2,...,n}->{1,2,...,n} such that Im(f) contains 5 fixed elements. 1
120, 2520, 52080, 1164240, 28594440, 771309000, 22746757440, 729419296320, 25295774463960, 943934414262840, 37728367833920400, 1608541146018621360, 72881990543360522280, 3497670707401587171240, 177254235519701336515680 (list; graph; refs; listen; history; text; internal format)
OFFSET

5,1

LINKS

Table of n, a(n) for n=5..19.

Milan Janjic, Enumerative Formulas for Some Functions on Finite Sets

FORMULA

a(n)=n^n-5*(n-1)^n+10*(n-2)^n-10*(n-3)^n+5*(n-4)^n-(n-5)^n.

EXAMPLE

a(10)=771309000.

MAPLE

a(n):n->n^n-5*(n-1)^n+10*(n-2)^n-10*(n-3)^n+5*(n-4)^n-(n-5)^n;

MATHEMATICA

Drop[Table[Sum[(-1)^k Binomial[5, k] (n-k)^n, {k, 0, 5}], {n, 1, 20}], 4]  (* Geoffrey Critzer, Dec 23 2012 *)

CROSSREFS

Cf. A126781, A126780, A126779, A126778.

Sequence in context: A220050 A032180 A000553 * A105943 A219945 A219834

Adjacent sequences:  A126229 A126230 A126231 * A126233 A126234 A126235

KEYWORD

nonn

AUTHOR

Aleksandar M. Janjic and Milan Janjic, Mar 08 2007

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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 14 18:21 EST 2018. Contains 318106 sequences. (Running on oeis4.)