A373565 Expansion of x + 1/(1 - x).
1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (1).
Crossrefs
Cf. A294619.
Programs
-
Mathematica
CoefficientList[Series[x + 1/(1 - x), {x, 0, 105}], x] (* Michael De Vlieger, Jun 10 2024 *)
Formula
a(n) = [x^n] (x^2 - x - 1) / (x - 1).
E.g.f.: exp(x) + x. - Stefano Spezia, Jun 10 2024