OFFSET
1,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (6, -9, 4).
FORMULA
a(n) = 4*(4^(n+1)-3n-4)/9 = 4*A014825(n). - R. J. Mathar, Oct 21 2008
G.f.: 4x/((1-x)^2(1-4x)). - R. J. Mathar, Oct 21 2008
a(1)=4, a(2)=24, a(3)=108, a(n)=6*a(n-1)-9*a(n-2)+4*a(n-3). - Harvey P. Dale, Nov 27 2013
MATHEMATICA
lst={}; s=0; Do[s+=(s+=(s+=n)); AppendTo[lst, s], {n, 3*4!}]; lst
Accumulate[Table[4(4^n-1)/3, {n, 0, 40}]] (* or *) LinearRecurrence[{6, -9, 4}, {0, 4, 24}, 40] (* Harvey P. Dale, Nov 27 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Oct 16 2008
EXTENSIONS
Edited by R. J. Mathar, Oct 21 2008
STATUS
approved