OFFSET
0,1
COMMENTS
Binomial transform of quasi-finite sequence 6,72,192,128,0,(0 continued).
a(n) mod 10 is periodic with period length 5: repeat 6,8,2,6,8.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) + 128.
G.f.: ( 6+54*x+66*x^2+2*x^3 ) / (x-1)^4 . - R. J. Mathar, Jul 01 2011
MATHEMATICA
LinearRecurrence[{4, -6, 4, -1}, {6, 78, 342, 926}, 100] (* G. C. Greubel, Jun 14 2016 *)
PROG
(Magma) [6+32*n^2+8*n*(7+8*n^2)/3: n in [0..50] ]; // Vincenzo Librandi, Aug 06 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Nov 05 2009
STATUS
approved