OFFSET
0,2
COMMENTS
Odd terms are multiples of 3. - Dario Piazzalunga, Jan 10 2013
LINKS
Index entries for linear recurrences with constant coefficients, signature (6, -13, 12, -4).
FORMULA
Recurrence: a(n) = 6*a(n-1) - 13*a(n-2) + 12*a(n-3) - 4*a(n-4).
G.f.: x*(3 - 8*x + 6*x^2)/(1-x)^2/(1 - 2*x)^2.
a(n) = n+A036289(n). - R. J. Mathar, Jun 17 2020
MATHEMATICA
Table[n*2^n+n, {n, 0, 3*4!}] (* Vladimir Joseph Stephan Orlovsky, Apr 25 2010 *)
LinearRecurrence[{6, -13, 12, -4}, {0, 3, 10, 27}, 30] (* Harvey P. Dale, May 06 2021 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladeta Jovovic, Apr 12 2002
STATUS
approved