OFFSET
1,2
COMMENTS
a(n) is the number of n-digit numbers in A366962.
LINKS
Index entries for linear recurrences with constant coefficients, signature (15,-74,120).
FORMULA
a(n) = 29*6^(n-1) - 49*5^(n-1) + 5*4^n.
a(n) = 15*a(n-1) - 74*a(n-2) + 120*a(n-3) for n > 3.
O.g.f.: x^2*(9 + 4*x)/((1 - 4*x)*(1 - 5*x)*(1 - 6*x)).
E.g.f.: (145*exp(6*x) - 294*exp(5*x) + 150*exp(4*x) - 1)/30.
MATHEMATICA
LinearRecurrence[{15, -74, 120}, {0, 9, 139}, 23]
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Stefano Spezia, Nov 11 2023
STATUS
approved