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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A120906 Triangle read by rows: T(n,k) is the number of ternary words of length n on {0,1,2} having k drops (n>=0, k>=0). The drops of a ternary word on {0,1,2} are the subwords 10,20 and 21. 2
1, 3, 6, 3, 10, 16, 1, 15, 51, 15, 21, 126, 90, 6, 28, 266, 357, 77, 1, 36, 504, 1107, 504, 36, 45, 882, 2907, 2304, 414, 9, 55, 1452, 6765, 8350, 2850, 210, 1, 66, 2277, 14355, 25653, 14355, 2277, 66, 78, 3432, 28314, 69576, 58278, 16236, 1221, 12, 91, 5005 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

Row n has 1+floor(2n/3) terms. Row sums are the powers of 3 (A000244). T(n,0)=A000217(n+1) (the triangular numbers). Sum(k*T(n,k),k>=0)=(n-1)*3^(n-1)=A036290(n-1).

LINKS

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

FORMULA

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

EXAMPLE

T(5,3)=6 because we have 1/02/1/0, 2/02/1/0, 2/1/01/0, 2/1/02/0, 2/12/1/0 and 2/1/02/1, the middle points of the drops being indicated by /.

Triangle starts:

1;

3;

6,3;

10,16,1;

15,51,15;

21,126,90,6

MAPLE

G:=1/((1-z)^3-3*t*z^2+2*t*z^3-t^2*z^3): Gser:=simplify(series(G, z=0, 15)): P[0]:=1: for n from 1 to 12 do P[n]:=sort(coeff(Gser, z^n)) od: for n from 0 to 12 do seq(coeff(P[n], t, j), j=0..floor(2*n/3)) od; # yields sequence in triangular form

CROSSREFS

Cf. A000244, A000217, A036290.

Sequence in context: A129529 A128503 A210193 * A210201 A160899 A203491

Adjacent sequences:  A120903 A120904 A120905 * A120907 A120908 A120909

KEYWORD

nonn,tabf

AUTHOR

Emeric Deutsch, Jul 15 2006

STATUS

approved

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

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

Last modified May 22 11:08 EDT 2013. Contains 225526 sequences.