|
|
|
|
1, 3, 9, 25, 65, 163, 401, 977, 2369, 5731, 13849, 33449, 80769, 195011, 470817, 1136673, 2744193, 6625091, 15994409, 38613945, 93222337, 225058659, 543339697, 1311738097, 3166815937, 7645370019, 18457556025, 44560482121, 107578520321, 259717522819
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
a(n)/a(n-1) tends to 1 + sqrt(2).
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(1 - x + x^2 + x^3) / ((1 - x)^2*(1 - 2*x - x^2)).
a(n) = (-(1 - sqrt(2))^(1+n) + (1+sqrt(2))^(1+n)) / (2*sqrt(2)) - n.
a(n) = 4*a(n-1) - 4*a(n-2) + a(n-4) for n>4.
(End)
|
|
EXAMPLE
|
a(5) = 65 = A000129(6) - 5 = 70 - 5.
|
|
PROG
|
(PARI) Vec(x*(1 - x + x^2 + x^3) / ((1 - x)^2*(1 - 2*x - x^2)) + O(x^35)) \\ Colin Barker, Sep 02 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|