OFFSET
0,1
LINKS
Michael De Vlieger, Table of n, a(n) for n = 0..3322
Evren Eyican Polatlı and Yüksel Soykan, On generalized third-order Jacobsthal numbers, Asian Res. J. of Math. (2021) Vol. 17, No. 2, 1-19, Article No. ARJOM.66022.
Index entries for linear recurrences with constant coefficients, signature (1,1,2).
FORMULA
G.f.: (-3 + 3*x + x^2)/(-1 + x + x^2 + 2*x^3).
MAPLE
a:= n-> (<<0|1|0>, <0|0|1>, <2|1|1>>^n. <<3, 0, 2>>)[1, 1]:
seq(a(n), n=0..34); # Alois P. Heinz, Jun 04 2021
MATHEMATICA
LinearRecurrence[{1, 1, 2}, {3, 0, 2}, 35] (* or *)
CoefficientList[Series[(-3 + 3 x + x^2)/(-1 + x + x^2 + 2 x^3), {x, 0, 34}], x]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michael De Vlieger, Jun 04 2021
STATUS
approved