|
|
A341744
|
|
a(0)=1, a(1)=2; for n > 1, a(n) = a(n - a(n-2)) + n.
|
|
1
|
|
|
1, 2, 4, 5, 5, 6, 8, 9, 9, 10, 12, 13, 13, 14, 16, 17, 17, 18, 20, 21, 21, 22, 24, 25, 25, 26, 28, 29, 29, 30, 32, 33, 33, 34, 36, 37, 37, 38, 40, 41, 41, 42, 44, 45, 45, 46, 48, 49, 49, 50, 52, 53, 53, 54, 56, 57, 57, 58, 60, 61, 61, 62, 64, 65, 65, 66, 68, 69, 69, 70
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: (1 + 2*x^2 - x^3)/((1 - x)^2*(1 + x^2)). - Stefano Spezia, Feb 19 2021
|
|
MATHEMATICA
|
CoefficientList[Series[(1 + 2 x^2 - x^3)/((1 - x)^2*(1 + x^2)), {x, 0, 69}], x] (* Michael De Vlieger, Mar 19 2021 *)
LinearRecurrence[{2, -2, 2, -1}, {1, 2, 4, 5}, 90] (* Harvey P. Dale, Jun 19 2021 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|