OFFSET
0,2
COMMENTS
Binomial transform of 1,1,6,1,6,1,6,1,6,1,6,1,6,1,6,...
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-2).
FORMULA
a(n) = 7*2^(n-1) - 5, n>=1, with a(0)=1.
a(n) = 2*a(n-1) + 5, n>1, with a(0)=1, a(1)=2.
a(n) = 3*a(n-1) - 2*a(n-2), n>2, with a(0)=1, a(1)=2, a(2)=9.
E.g.f.: (1/2)*(5 - 10*exp(x) + 7*exp(2*x)). - G. C. Greubel, Sep 02 2016
MATHEMATICA
Join[{1}, Table[7*2^(n-1)-5, {n, 15}]] (* Vladimir Joseph Stephan Orlovsky, Mar 14 2011*)
Join[{1, 2, 9}, LinearRecurrence[{3, -2}, {23, 51}, 20]] (* G. C. Greubel, Sep 02 2016 *)
PROG
(PARI) a(n)=if(n, 7<<(n-1)-5, 1) \\ Charles R Greathouse IV, Jan 17 2012
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Philippe Deléham, Jan 05 2009
STATUS
approved