OFFSET
1,6
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
I. Flores, k-Generalized Fibonacci numbers, Fib. Quart., 5 (1967), 258-266.
Eric Weisstein's World of Mathematics, Pentanacci Number
Index entries for linear recurrences with constant coefficients, signature (1,1,1,1,1).
FORMULA
G.f.: x*(1-x-x^2-x^3)/(1-x-x^2-x^3-x^4-x^5). - Maksym Voznyy (voznyy(AT)mail.ru), Aug 12 2009; checked and corrected by R. J. Mathar, Sep 16 2009
MATHEMATICA
f[n_]:= MatrixPower[{{1, 1, 1, 1, 1}, {1, 0, 0, 0, 0}, {0, 1, 0, 0, 0}, {0, 0, 1, 0, 0}, {0, 0, 0, 1, 0}}, n][[ 1, 4]]; Array[f, 50]
LinearRecurrence[{1, 1, 1, 1, 1}, {1, 0, 0, 0, 1}, 40] (* G. C. Greubel, Aug 25 2023 *)
PROG
(Magma) R<x>:=PowerSeriesRing(Integers(), 40); Coefficients(R!( x*(1-2*x+x^4)/(1-2*x+x^6) )); // G. C. Greubel, Aug 25 2023
(SageMath)
def A124313_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P( (1-2*x+x^4)/(1-2*x+x^6) ).list()
A124313_list(50) # G. C. Greubel, Aug 25 2023
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Oct 25 2006
EXTENSIONS
Edited by Ralf Stephan, Oct 20 2013
STATUS
approved