OFFSET
0,2
COMMENTS
Original name was: A sum of generalized Jacobsthal numbers.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-1,-3,2).
FORMULA
MATHEMATICA
a[n_]:=2^(n+1) - (2*n+1)/2 - (-1)^n/2; Array[a, 50, 0] (* or *)
CoefficientList[Series[(4*x^3 - 3*x^2 + 1)/(-2*x^4 + 3*x^3 + x^2 - 3*x + 1), {x, 0, 50}], x] (* or *)
LinearRecurrence[{3, -1, -3, 2}, {1, 3, 5, 13}, 50] (* Stefano Spezia, Oct 08 2018 *)
PROG
(Magma) [2^(n+1)-(2*n+1)/2-(-1)^n/2: n in [0..35]]; // Vincenzo Librandi, Jul 05 2011
(PARI) x='x+O('x^33); Vec((4*x^3-3*x^2+1)/(-2*x^4+3*x^3+x^2-3*x+1)) \\ Altug Alkan, Oct 08 2018
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, May 18 2003
STATUS
approved