OFFSET
0,2
COMMENTS
Length-n words from letters {1,2,...,7} with at least one letter >2. [Joerg Arndt, Jun 02 2011]
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..300
Index entries for linear recurrences with constant coefficients, signature (9,-14).
FORMULA
a(n) = 9*a(n-1) - 14*a(n-2).
G.f.: 5*x/((1-2*x)*(1-7*x)). - Vincenzo Librandi, Oct 04 2014
a(n) = 5*A016130(n-1). - R. J. Mathar, Mar 10 2022
E.g.f.: exp(2*x)*(exp(5*x) - 1). - Elmo R. Oliveira, Sep 10 2024
MATHEMATICA
CoefficientList[Series[5 x/((1 - 2 x) (1 - 7 x)), {x, 0, 30}], x] (* Vincenzo Librandi, Oct 04 2014 *)
PROG
(Magma) [7^n -2^n: n in [0..30]];
(PARI) a(n)=7^n-1<<n \\ Charles R Greathouse IV, Jun 08 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jun 02 2011
STATUS
approved