login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A209240 Triangular array read by rows. T(n,k) is the number of ternary length-n words in which the longest run of consecutive 0's is exactly k; n>=0, 0<=k<=n. 2
1, 2, 1, 4, 4, 1, 8, 14, 4, 1, 16, 44, 16, 4, 1, 32, 132, 58, 16, 4, 1, 64, 384, 200, 60, 16, 4, 1, 128, 1096, 668, 214, 60, 16, 4, 1, 256, 3088, 2180, 740, 216, 60, 16, 4, 1, 512, 8624, 6992, 2504, 754, 216, 60, 16, 4, 1, 1024, 23936, 22128, 8332, 2576, 756, 216, 60, 16, 4, 1 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Row sums are 3^n.
Column k=0 is A000079.
Column k=1 is A094309.
Limit of reversed rows gives A120926.
LINKS
FORMULA
O.g.f. for column k: (1-x)^2*x^k/(1-3*x+2*x^(k+1))/(1-3*x+2*x^(k+2)).
EXAMPLE
1;
2, 1;
4, 4, 1;
8, 14, 4, 1;
16, 44, 16, 4, 1;
32, 132, 58, 16, 4, 1;
64, 384, 200, 60, 16, 4, 1;
128, 1096, 668, 214, 60, 16, 4, 1;
256, 3088, 2180, 740, 216, 60, 16, 4, 1;
MATHEMATICA
nn=10; f[list_]:=Select[list, #>0&]; Map[f, Transpose[Table[CoefficientList[ Series[(1-x^k)/(1-3x+2x^(k+1))-(1-x^(k-1))/(1-3x+2x^k), {x, 0, nn}], x], {k, 1, nn+1}]]]//Grid
CROSSREFS
Cf. A048004.
Sequence in context: A065109 A038207 A113988 * A263989 A202710 A200965
KEYWORD
nonn,tabl
AUTHOR
Geoffrey Critzer, Jan 13 2013
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 8 09:34 EDT 2024. Contains 372332 sequences. (Running on oeis4.)