OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..900
Index entries for linear recurrences with constant coefficients, signature (1,6,-6).
FORMULA
a(n) = 6*a(n-2)+5 for n > 2; a(1) = 1, a(2) = 5.
a(n) = (3-(-1)^n)*6^(1/4*(2*n-1+(-1)^n))/2-1.
G.f.: x*(1+4*x)/((1-x)*(1-6*x^2)).
a(n) = A026549(n) - 1.
PROG
(Magma) T:=[ n le 2 select 3*n-2 else 6*Self(n-2): n in [1..28] ]; [ n eq 1 select T[1] else Self(n-1)+T[n]: n in [1..#T]];
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Klaus Brockhaus, Aug 16 2009
STATUS
approved