OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,-1).
FORMULA
From Colin Barker, Mar 23 2017: (Start)
G.f.: 9*x*(2 + 3*x + 4*x^2 + 5*x^3 + 6*x^4 + 7*x^5 + 8*x^6 + 9*x^7 + x^8 + 8*x^9 + 7*x^10 + 6*x^11 + 5*x^12 + 4*x^13 + 3*x^14 + 2*x^15 + x^16) / ((1 - x)^2*(1 + x + x^2)^2*(1 + x^3 + x^6)^2).
a(n) = 2*a(n-9) - a(n-18) for n>17.
(End)
MATHEMATICA
Table[If[Mod[n, 9]==0, n, 10n+9-Mod[n, 9]], {n, 56}] (* Ray Chandler, Feb 09 2014 *)
PROG
(PARI) Vec(9*x*(2 + 3*x + 4*x^2 + 5*x^3 + 6*x^4 + 7*x^5 + 8*x^6 + 9*x^7 + x^8 + 8*x^9 + 7*x^10 + 6*x^11 + 5*x^12 + 4*x^13 + 3*x^14 + 2*x^15 + x^16) / ((1 - x)^2*(1 + x + x^2)^2*(1 + x^3 + x^6)^2) + O(x^60)) \\ Colin Barker, Mar 23 2017
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Amarnath Murthy, Apr 20 2003
EXTENSIONS
Extended by Ray Chandler, Feb 09 2014
STATUS
approved