OFFSET
1,2
COMMENTS
a(n) is the number of n-digit numbers in A366961.
LINKS
Index entries for linear recurrences with constant coefficients, signature (12,-47,60).
FORMULA
a(n) = 29*5^(n-1) - 47*4^(n-1) + 2*3^(n+1).
a(n) = 12*a(n-1) - 47*a(n-2) + 60*a(n-3) for n > 3.
O.g.f.: x^2*(11 + 3*x)/((1 - 3*x)*(1 - 4*x)*(1 - 5*x)).
E.g.f.: (116*exp(5*x) - 235*exp(4*x) + 120*exp(3*x) - 1)/20.
MATHEMATICA
LinearRecurrence[{12, -47, 60}, {0, 11, 135}, 23]
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Stefano Spezia, Nov 11 2023
STATUS
approved