OFFSET
0,1
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
a(n) = (9 + n)*(10 + n)/2 = A000217(9+n) for 0 <= n <= 9, a(n) = a(n-1) + 19 for n >= 10.
G.f.: (45 - 80*x + 36*x^2 - x^11)/(1 - x)^3. - G. C. Greubel, Jul 13 2016
MATHEMATICA
CoefficientList[Series[(45 - 80*x + 36*x^2 - x^11)/(1 - x)^3, {x, 0, 50}]
, x] (* G. C. Greubel, Jul 13 2016 *)
LinearRecurrence[{2, -1}, {45, 55, 66, 78, 91, 105, 120, 136, 153, 171, 190}, 60] (* Harvey P. Dale, Jan 24 2021 *)
PROG
(PARI) a(n)=if(n>9, 19*n, (n+9)*(n+10)/2) \\ Charles R Greathouse IV, Jul 13 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jaroslav Krizek, Nov 18 2009
STATUS
approved