OFFSET
0,4
COMMENTS
a(n) is the number of n-digit sequences on 4 symbols that have at least two 0's. For ternary sequences see A066810 and for binary sequences see A000295. - Enrique Navarrete, Apr 15 2022
LINKS
Index entries for linear recurrences with constant coefficients, signature (10,-33,36).
FORMULA
a(n) = 4^n - 3^n - n*3^(n-1).
E.g.f.: exp(3*x)*(exp(x)-x-1). - Enrique Navarrete, Apr 15 2022
EXAMPLE
a(4)=67 since the sequences are the 12 permutations of the form 1000, 2000, 3000; the 18 permutations of the form 1100, 2200, 3300; the 36 permutations of the form 1200, 1300, 2300; and 0000. - Enrique Navarrete, Apr 15 2022
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Jul 21 2003
STATUS
approved