OFFSET
1,2
LINKS
Robbert Fokkink and Gandhar Joshi, Anti-recurrence sequences, arXiv:2506.13337 [math.NT], 2025. See p. 11.
Index entries for linear recurrences with constant coefficients, signature (1,1,1,1,1).
FORMULA
G.f.: x*(-1-x+2*x^3+5*x^4)/(-1+x+x^2+x^3+x^4+x^5). [Maksym Voznyy (voznyy(AT)mail.ru), Aug 12 2009]
MATHEMATICA
a=1; b=2; c=3; d=4; e=5; lst={a, b, c, d, e}; Do[f=a+b+c+d+e; AppendTo[lst, f]; a=b; b=c; c=d; d=e; e=f, {n, 5!}]; lst
LinearRecurrence[{1, 1, 1, 1, 1}, Range[5], 40](* Harvey P. Dale, Jun 20 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; 1, 1, 1, 1, 1]^(n-1)*[1; 2; 3; 4; 5])[1, 1] \\ Charles R Greathouse IV, Jun 03 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Sep 30 2008
EXTENSIONS
G.f. proposed by Maksym Voznyy checked and corrected by R. J. Mathar, Sep 16 2009
STATUS
approved
