login
A190541
7^n - 3^n.
4
0, 4, 40, 316, 2320, 16564, 116920, 821356, 5758240, 40333924, 282416200, 1977149596, 13840755760, 96887416084, 678218289880, 4747547161036, 33232887522880, 232630384847044, 1628413210489960, 11398894023111676
OFFSET
0,2
COMMENTS
Length-n words from letters {1,2,...,7} with at least one letter greater than 3. - Joerg Arndt, Jun 02 2011
FORMULA
a(n) = 10*a(n-1) -21*a(n-2).
G.f.: 4*x/((1-3*x)*(1-7*x)). - Vincenzo Librandi, Oct 04 2014
a(n) = A000420(n) - A000244(n). - Wesley Ivan Hurt, Oct 04 2014
MAPLE
A190541:=n->7^n-3^n: seq(A190541(n), n=0..25); # Wesley Ivan Hurt, Oct 04 2014
MATHEMATICA
Table[7^n - 3^n, {n, 0, 25}] (* or *) CoefficientList[Series[4 x /((1 - 3 x) (1 - 7 x)), {x, 0, 30}], x] (* Vincenzo Librandi, Oct 04 2014 *)
LinearRecurrence[{10, -21}, {0, 4}, 20] (* Harvey P. Dale, Mar 30 2015 *)
PROG
(Magma) [7^n - 3^n: n in [0..30]];
(PARI) a(n)=7^n-3^n \\ Charles R Greathouse IV, Jun 02 2011
CROSSREFS
Similar sequences: A121213, A016169.
Sequence in context: A212699 A061318 A277652 * A298198 A043031 A121126
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jun 02 2011
STATUS
approved