OFFSET
1,10
COMMENTS
9-Bonacci constant = 1.99802947...
LINKS
Robert Price, Table of n, a(n) for n = 1..1000
E. S. Croot, Notes on Linear Recurrence Sequences
M. A. Lerma, Recurrence Relations
Index entries for linear recurrences with constant coefficients, signature (1,1,1,1,1,1,1,1,1).
FORMULA
For a(1)=...=a(9)=1, a(10)=9, a(n)= 2*a(n-1) - a(n-10). - Vincenzo Librandi, Dec 20 2010
G.f.: x*(1-x-x^2-x^3-x^4-x^5-x^6-x^7-x^8+7*x^9)/(1-2*x+x^10). - G. C. Greubel, Jul 28 2017
MATHEMATICA
LinearRecurrence[{1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1}, 40] (* Ray Chandler, Aug 01 2015 *)
With[{c=Table[1, {9}]}, LinearRecurrence[c, c, 40]] (* Harvey P. Dale, Apr 08 2016 *)
PROG
(PARI) x='x+O('x^50); Vec((x-x^2-x^3-x^4-x^5-x^6-x^7-x^8-x^9+7*x^10)/(1 -2*x+ x^10)) \\ G. C. Greubel, Jul 28 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Luis A Restrepo (luisiii(AT)mac.com), Jan 07 2007
STATUS
approved