|
Search: id:A119915
|
|
|
| A119915 |
|
Number of ternary words of length n and having exactly one run of 0's of odd length. |
|
+0 2
|
|
| 0, 1, 4, 13, 40, 117, 332, 921, 2512, 6761, 18004, 47525, 124536, 324317, 840092, 2166065, 5562272, 14232273, 36300196, 92321085, 234192584, 592695109, 1496810732, 3772761289, 9492450672, 23844342073, 59804611060, 149787196117
(list; graph; listen)
|
|
|
OFFSET
|
0,3
|
|
|
COMMENT
|
Column 1 of A119914.
|
|
FORMULA
|
G.f.= z(1-z^2)/(1-2z-z^2)^2.
|
|
EXAMPLE
|
a(3)=13 because we have 000, 011, 012, 021, 022, 101, 102, 110, 120, 201, 202, 210, and 220 (for example, 001, 020 do not qualify).
|
|
MAPLE
|
g:=z*(1-z^2)/(1-2*z-z^2)^2: gser:=series(g, z=0, 34): seq(coeff(gser, z, n), n=0..30);
|
|
CROSSREFS
|
Cf. A119914.
Sequence in context: A121192 A133409 A000746 this_sequence A137744 A027130 A027121
Adjacent sequences: A119912 A119913 A119914 this_sequence A119916 A119917 A119918
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Emeric Deutsch (deutsch(AT)duke.poly.edu), May 29 2006
|
|
|
Search completed in 0.002 seconds
|