OFFSET
0,2
COMMENTS
Original name: a(n) = T(2, n), array T given by A048472.
Binomial transform of A008486. - Paul Barry, Jul 09 2003
Row sums of triangle A134232. - Gary W. Adamson, Oct 14 2007
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5, -8, 4).
FORMULA
From Harvey P. Dale, Jan 29 2012: (Start)
a(n) = 5*a(n-1) - 8*a(n-2) + 4*a(n-3); a(0)=1, a(1)=4, a(2)=13.
G.f.: (-x^2 + x - 1)/((x-1)(2*x-1)^2). (End)
MATHEMATICA
Table[3n 2^(n-1)+1, {n, 0, 30}] (* or *) LinearRecurrence[{5, -8, 4}, {1, 4, 13}, 30] (* Harvey P. Dale, Jan 29 2012 *)
PROG
(Magma) [3*n * 2^(n-1) + 1: n in [0..30]]; // Vincenzo Librandi, Sep 23 2011
(PARI) a(n)=3*n*2^(n-1)+1 \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Better description from Paul Barry, Jul 09 2003
STATUS
approved