|
|
A095795
|
|
a(0)=2, a(1)=5, a(n+2) = a(n+1) + (-1)^n a(n).
|
|
1
|
|
|
2, 5, 7, 2, 9, 7, 16, 9, 25, 16, 41, 25, 66, 41, 107, 66, 173, 107, 280, 173, 453, 280, 733, 453, 1186, 733, 1919, 1186, 3105, 1919, 5024, 3105, 8129, 5024, 13153, 8129, 21282, 13153, 34435, 21282, 55717, 34435, 90152, 55717, 145869, 90152, 236021, 145869
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
COMMENTS
|
Alternate terms form a Lucas sequence.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = a(n-2) + a(n-4). G.f.: (3*x^3-5*x^2-5*x-2) / (x^4+x^2-1). - Colin Barker, Oct 18 2013
|
|
MATHEMATICA
|
CoefficientList[Series[(3*x^3 - 5*x^2 - 5*x - 2)/(x^4 + x^2 - 1), {x, 0, 50}], x] (* Wesley Ivan Hurt, Jan 21 2017 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
Missing terms inserted and more terms added by Colin Barker, Oct 18 2013
|
|
STATUS
|
approved
|
|
|
|