OFFSET
5,1
LINKS
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
KEYWORD
nonn
AUTHOR
Aleksandar M. Janjic and Milan Janjic, Mar 08 2007
STATUS
approved