OFFSET
1,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (11,-19,9).
FORMULA
G.f.: x * (8 - 9 * x)/((1 - x)^2 * (1 - 9 * x)).
a(n) = 11*a(n-1) - 19*a(n-2) + 9*a(n-3).
a(n) = 7 * A014832(n) + n.
a(n) = (7*9^(n+1) + 8*n - 63)/64.
a(n) = Sum_{k=0..n-1} (9 - n + k)*9^k.
E.g.f.: exp(x)*(63*(exp(8*x) - 1) + 8*x)/64. - Stefano Spezia, May 29 2023
MATHEMATICA
LinearRecurrence[{11, -19, 9}, {8, 79, 717}, 20] (* Amiram Eldar, Apr 23 2022 *)
PROG
(PARI) my(N=30, x='x+O('x^N)); Vec(x*(8-9*x)/((1-x)^2*(1-9*x)))
(PARI) a(n) = (7*9^(n+1)+8*n-63)/64;
(PARI) b(n, k) = sum(j=0, n-1, (k-n+j)*k^j);
a(n) = b(n, 9);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Apr 23 2022
STATUS
approved