OFFSET
0,3
COMMENTS
Second column of the 1-Euler triangle A188587. In general, the second column of the r-Euler triangle has g.f. (1-(4-r)*x+2*(4-r)*x^2-(4-r)*x^3)/((1-x)^2*(1-2*x)).
LINKS
FORMULA
a(n+1)=A094002(n).
a(n) = 5*2^(n-1)-n-3, n>0.
MATHEMATICA
CoefficientList[Series[(1-3x+6x^2-3x^3)/((1-x)^2(1-2x)), {x, 0, 30}], x] (* or *) LinearRecurrence[{4, -5, 2}, {1, 1, 5, 14}, 40] (* Harvey P. Dale, Nov 26 2017 *)
PROG
(PARI) a(n) = if (n==0, 1, 5*2^(n-1) - n - 3) \\ Michel Marcus, Jul 24 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Barry, Apr 04 2011
STATUS
approved