login
A140649
Triangle whose rows are decreasing powers of 2, followed by 0.
0
1, 0, 2, 1, 0, 4, 2, 1, 0, 8, 4, 2, 1, 0, 16, 8, 4, 2, 1, 0, 32, 16, 8, 4, 2, 1, 0, 64, 32, 16, 8, 4, 2, 1, 0, 128, 64, 32, 16, 8, 4, 2, 1, 0, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0, 2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0, 4096
OFFSET
2,3
FORMULA
T(n,k) = 2^(n-k-1) if n>k, otherwise 0.
EXAMPLE
Triangle begins
1, 0,
2, 1, 0,
4, 2, 1, 0,
8, 4, 2, 1, 0,
16, 8, 4, 2, 1, 0,
32, 16, 8, 4, 2, 1, 0,
64, 32, 16, 8, 4, 2, 1, 0
PROG
(PARI) T(n, k) = if(n>k, 2^(n-k-1), 0);
for(n=2, 10, for(k=1, n, print1(T(n, k), ", ")); print()); /* show triangle */
CROSSREFS
Sequence in context: A249343 A369206 A355756 * A290222 A327549 A293808
KEYWORD
nonn,easy,tabf
AUTHOR
Paul Curtz, Jul 09 2008
STATUS
approved