OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,6,-6).
FORMULA
a(n) = 7*6^((n-1)/2)-2 (n odd), 2*6^(n/2)-2 (n even).
G.f.: 5*x*(x+1) / ((x-1)*(6*x^2-1)). - Colin Barker, Feb 15 2013
MATHEMATICA
Table[If[OddQ[n], 7*6^((n - 1)/2) - 2, 2*6^(n/2) - 2], {n, 25}] (* or *) LinearRecurrence[{1, 6, -6}, {5, 10, 40}, 25] (* G. C. Greubel, Oct 27 2016 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Martin Renner, May 02 2006
EXTENSIONS
More terms from Colin Barker, Feb 15 2013
STATUS
approved