login
A147535
a(n) = 2*4^n+4*3^n-2^n.
1
5, 18, 64, 228, 820, 2988, 11044, 41388, 157060, 602508, 2332324, 9095148, 35676100, 140586828, 555986404, 2204846508, 8762055940, 34876167948, 138988373284, 554404335468, 2212969344580
OFFSET
0,1
FORMULA
a(n) = 9*a(n-1)-26*a(n-2)+24*a(n-3) = 2*4^n+4*3^n-2^n. G.f.: (5-27x+32x^2)/((1-2x)(1-3x)(1-4x)). [R. J. Mathar, Nov 09 2008]
MATHEMATICA
Table[2*4^n+4*3^n-2^n, {n, 0, 20}] (* or *) LinearRecurrence[{9, -26, 24}, {5, 18, 64}, 30] (* Harvey P. Dale, Jun 08 2024 *)
CROSSREFS
Sequence in context: A284840 A301749 A222373 * A184309 A051944 A153373
KEYWORD
nonn,easy,less
AUTHOR
Roger L. Bagula, Nov 06 2008
EXTENSIONS
Meaningful name from Joerg Arndt, Dec 26 2022
STATUS
approved