login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A119916 Number of runs of 0's of odd length in all ternary words of length n. 2
0, 1, 4, 17, 64, 233, 820, 2825, 9568, 31985, 105796, 346913, 1129312, 3653657, 11758132, 37665881, 120172096, 382039649, 1210689028, 3825777329, 12058462720, 37918780361, 118986517684, 372650082857, 1165021837984 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

a(n)=Sum(k*A119914(n,k),k>=0).

Binomial transform of A179608. - Johannes W. Meijer, Aug 01 2010

LINKS

Table of n, a(n) for n=0..24.

Index entries for linear recurrences with constant coefficients, signature (5,-3,-9).

FORMULA

G.f. = z(1-z)/[(1+z)(1-3z)^2].

a(n) = ((-1)^(n-1)+(3+4*n)*3^(n-1))/8. - Johannes W. Meijer, Aug 01 2010

EXAMPLE

a(2)=4 because in the nine ternary words of length 2, namely, 00, (0)1, (0)2, 1(0), 11, 12, 2(0), 21, 22, we have altogether 4 runs of 0's of odd length (shown between parentheses).

MAPLE

g:=z*(1-z)/(1-3*z)^2/(1+z): gser:=series(g, z=0, 35): seq(coeff(gser, z, n), n=0..28);

CROSSREFS

Cf. A119914.

Sequence in context: A252815 A191272 A122231 * A209375 A005784 A095252

Adjacent sequences:  A119913 A119914 A119915 * A119917 A119918 A119919

KEYWORD

nonn,easy

AUTHOR

Emeric Deutsch, May 29 2006

STATUS

approved

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

Content is available under The OEIS End-User License Agreement .

Last modified September 11 00:29 EDT 2015. Contains 261512 sequences.