OFFSET
0,2
LINKS
Harry J. Smith, Table of n, a(n) for n=0..200
Index entries for linear recurrences with constant coefficients, signature (4,-5,2).
FORMULA
G.f.: x(3-5x)/((1-x)^2*(1-2x)). Binomial transform of 0,3,1,1,... (1 continued). - R. J. Mathar, Sep 17 2008
a(n) = A000225(n+1) - A005803(n), for n>0. In other words, for n>0, a(n) is the sum of the elements on the perimeter of a Pascal's triangle of depth (n+1). - Ivan N. Ianakiev, Aug 18 2016
E.g.f.: exp(x)*(exp(x) + 2*x - 1). - Stefano Spezia, Dec 08 2024
EXAMPLE
a(5) = 2^5 + 2*5 - 1 = 32 + 10 - 1 = 41. - Michael B. Porter, Aug 18 2016
MATHEMATICA
Table[2^n+2*n-1, {n, 0, 60}] (* Vladimir Joseph Stephan Orlovsky, Feb 15 2011 *)
PROG
(PARI) a(n) = { 2^n + 2*n - 1 } \\ Harry J. Smith, Jul 27 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, May 20 2001
STATUS
approved