OFFSET
1,2
COMMENTS
REFERENCES
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence)
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Martin Burtscher, Igor Szczyrba, RafaĆ Szczyrba, Analytic Representations of the n-anacci Constants and Generalizations Thereof, Journal of Integer Sequences, Vol. 18 (2015), Article 15.4.5.
N. G. Voll, Some identities for four term recurrence relations, Fib. Quart., 51 (2013), 268-273.
Index entries for linear recurrences with constant coefficients, signature (1,1,1).
FORMULA
a(n) = 2*a(n-1) - a(n-4), n>4. - Vincenzo Librandi, Jun 08 2011
MATHEMATICA
LinearRecurrence[{1, 1, 1}, {1, 3, 4}, 100] (* Vladimir Joseph Stephan Orlovsky, Jun 07 2011 *)
CoefficientList[Series[(1 + 2 x) / (1 - x - x^2 - x^3), {x, 0, 40}], x] (* Vincenzo Librandi, Jun 09 2013 *)
PROG
(PARI) Vec((x+2*x^2)/(1-x-x^2-x^3)+O(x^99)) \\ Charles R Greathouse IV, Jun 08 2011
(Magma) I:=[1, 3, 4]; [n le 3 select I[n] else Self(n-1)+Self(n-2)+Self(n-3): n in [1..50]]; // Vincenzo Librandi, Jun 09 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved