Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A024996
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A024996 Triangular array, read by rows: second differences in n,n direction of trinomial array A027907. +0
18
1, 1, 0, 1, 1, 0, 2, 0, 1, 1, 1, 3, 2, 3, 1, 1, 1, 2, 5, 6, 8, 6, 5, 2, 1, 1, 3, 8, 13, 19, 20, 19, 13, 8, 3, 1, 1, 4, 12, 24, 40, 52, 58, 52, 40, 24, 12, 4, 1, 1, 5, 17, 40, 76, 116, 150, 162, 150, 116, 76, 40, 17, 5, 1, 1, 6, 23, 62, 133, 232, 342, 428, 462, 428, 342, 232, 133, 62, 23, 6 (list; graph; listen)
OFFSET

1,7

COMMENT

For n>2, T(n,k)=number of integer strings s(0),...,s(n) such that s(n)=n-k,s(0)=0,|s(i)-s(i-1)|=1 for i=1,2 and <=1 for i >= 3.

FORMULA

T(n, k) = T(n-1, k-2) + T(n-1, k-1) + T(n-1, k), starting with [1], [1, 0, 1], [1, 0, 2, 0, 1].

G.f.: (1-yz)^2 / [1-z(1+y+y^2)]. - Ralf Stephan, Jan 09 2005

EXAMPLE

............1

.........1..0..1

......1..0..2..0..1

....1.1..3..2..3..1..1

..1.2.5..6..8..6..5..2.1

1.3.8.13.19.20.19.13.8.3.1

PROGRAM

(PARI) T(n, k)=if(n<0||k<0||k>2*n, 0, if(n==0, 1, if(n==1, [1, 0, 1][k+1], if(n==2, [1, 0, 2, 0, 1][k+1], T(n-1, k-2)+T(n-1, k-1)+T(n-1, k)))))

CROSSREFS

First differences in n, n direction of array A025177.

Central column is essentially A024997, other columns are A024998, A026069, A026070, A026071. Row sums are in A025579. Cf. A024072.

Sequence in context: A120648 A029394 A035467 this_sequence A134655 A077614 A116948

Adjacent sequences: A024993 A024994 A024995 this_sequence A024997 A024998 A024999

KEYWORD

nonn,tabf,easy

AUTHOR

Clark Kimberling (ck6(AT)evansville.edu)

EXTENSIONS

Edited by Ralf Stephan, Jan 09 2004

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research