OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (1, -1, 5, -5, 5).
FORMULA
Sequence is identical to its third differences in absolute values.
G.f.:-x*(x+1)*(3*x^2+x+1)/((x^2-x+1)*(5*x^3-1)) [From Maksym Voznyy (voznyy(AT)mail.ru), Aug 12 2009]
MATHEMATICA
LinearRecurrence[{1, -1, 5, -5, 5}, {0, 1, 3, 6, 11}, 18] (* Ray Chandler, Sep 23 2015 *)
PROG
(PARI) a(n)=([0, 1, 0, 0, 0; 0, 0, 1, 0, 0; 0, 0, 0, 1, 0; 0, 0, 0, 0, 1; 5, -5, 5, -1, 1]^n*[0; 1; 3; 6; 11])[1, 1] \\ Charles R Greathouse IV, Jun 03 2026
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Paul Curtz, Nov 02 2007
STATUS
approved
