OFFSET
0,2
COMMENTS
A sequence that occurs in A394330.
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (8,-22,24,-9).
FORMULA
a(n) = A036290(n) + 1 - n.
a(n) = A050914(n) - n.
From Stefano Spezia, Mar 21 2026: (Start)
G.f.: (1 - 5*x + 15*x^2 - 15*x^3)/((1 - 3*x)^2*(1 - x)^2).
E.g.f.: exp(x)*(1 + (3*exp(2*x) - 1)*x). (End)
MATHEMATICA
LinearRecurrence[{8, -22, 24, -9}, {1, 3, 17, 79}, 30] (* Paolo Xausa, Mar 27 2026 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
A.H.M. Smeets, Mar 17 2026
STATUS
approved
