OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
G.f.: -(3*x^4+42*x^3+64*x^2+10*x+1) / (x-1)^5. - Colin Barker, May 04 2013
EXAMPLE
For n>5 this is 54321 translated from base n to base 10
MATHEMATICA
Join[{1}, Table[Total[Table[i n^(i-1), {i, 5}]], {n, 30}]] (* or *) LinearRecurrence[{5, -10, 10, -5, 1}, {1, 15, 129, 547, 1593}, 30] (* Harvey P. Dale, Sep 20 2017 *)
PROG
(PARI) a(n)=1+2*n+3*n^2+4*n^3+5*n^4 \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Henry Bottomley, Jun 29 2000
STATUS
approved