OFFSET
0,2
COMMENTS
a(n)/a(n-1) tends to 2.83928675... = A058265 + 1.
Partial sums are in A073357. - R. J. Mathar, Apr 02 2008
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-4,2).
FORMULA
a(n) = 4*a(n-1)-4*a(n-2)+2*a(n-3), n>2. - T. D. Noe, Nov 07 2006
O.g.f.: -(x-1)^2/(-1+4*x-4*x^2+2*x^3). - R. J. Mathar, Apr 02 2008
a(n) = 2*a(n-1) + Sum_{j=1..n-1} j*a(n-j-1), n>=1; with a(0) = 1. - Bob Selcoe, Jun 28 2014
EXAMPLE
a(4) = 14 = 1*1 + 3*1 + 3*2 + 1*4;
a(6) = 324 = 2*114 + 1*40 + 2*14 + 3*5 + 4*2 + 5*1. - Bob Selcoe, Jun 28 2014
MATHEMATICA
CoefficientList[Series[-(x - 1)^2/(-1 + 4*x - 4*x^2 + 2*x^3), {x, 0, 30}], x] (* Wesley Ivan Hurt, Jul 05 2014 *)
LinearRecurrence[{4, -4, 2}, {1, 2, 5}, 40] (* Harvey P. Dale, Oct 10 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Gary W. Adamson, Mar 01 2006
EXTENSIONS
Corrected and extended by T. D. Noe, Nov 07 2006
STATUS
approved