OFFSET
2,1
COMMENTS
For n>2, two evens followed by four odds.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 2..1000
Index entries for linear recurrences with constant coefficients, signature (2,1,-2,-1).
FORMULA
From R. J. Mathar, Jul 08 2009, Jul 13 2009: (Start)
G.f.: -x^2*(-7-4*x+3*x^2+x^3)/(x^2+x-1)^2.
a(n) = 2*a(n-1)+a(n-2)-2*a(n-3)-a(n-4).
EXAMPLE
For n=2, a(2) = 7;
For n=21, a(21) = 816536.
MATHEMATICA
Total/@Partition[Times@@@Table[{n, LucasL[n]}, {n, 30}], 2, 1] (* or *) LinearRecurrence[{2, 1, -2, -1}, {7, 18, 40, 83}, 30](* Harvey P. Dale, Oct 21 2011 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Parthasarathy Nambi, Dec 29 2007
EXTENSIONS
Typo in A-numbers corrected by R. J. Mathar, Jul 13 2009
More terms from Harvey P. Dale, Oct 21 2011
STATUS
approved