|
|
A164981
|
|
A triangle with Pell numbers in the first column.
|
|
3
|
|
|
1, 2, 1, 5, 3, 1, 12, 10, 4, 1, 29, 30, 16, 5, 1, 70, 87, 56, 23, 6, 1, 169, 245, 185, 91, 31, 7, 1, 408, 676, 584, 334, 136, 40, 8, 1, 985, 1836, 1784, 1158, 546, 192, 50, 9, 1, 2378, 4925, 5312, 3850, 2052, 834, 260, 61, 10, 1, 5741, 13079, 15497, 12386, 7342, 3366, 1212, 341, 73, 11, 1
(list;
table;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Rows sum up to A000244 (powers of 3), diagonals to A001654 (golden rectangles).
Up to reflection at the vertical axis, the triangle of numbers given here coincides with the triangle given in A210557, i.e. the numbers are the same just read row-wise in the opposite direction. [Christine Bessenrodt, Jul 20 2012]
Subtriangle of (0, 2, 1/2, -1/2, 0, 0, 0, 0, 0, 0, 0, ...) DELTA (1, 0, -1/2, 1/2, 0, 0, 0, 0, 0, 0, 0, ...) where DELTA is the operator defined in A084938. - Philippe Deléham, Oct 10 2013
|
|
LINKS
|
|
|
FORMULA
|
T(1,1) =1. T(n,k)=0 if n<1 or k<1 or k>n. T(n,k) = 2*T(n-1,k)+T(n-1,k-1)+T(n-2,k)-T(n-2,k-1) otherwise.
T(n,n-1) = n.
|
|
EXAMPLE
|
Triangle begins
1
2,1
5,3,1
12,10,4,1
29,30,16,5,1
70,87,56,23,6,1
169,245,185,91,31,7,1
...
Triangle (0, 2, 1/2, -1/2, 0, 0, ...) DELTA (1, 0, -1/2, 1/2, 0, 0, ...):
1
0, 1
0, 2, 1
0, 5, 3, 1
0, 12, 10, 4, 1
0, 29, 30, 16, 5, 1
0, 70, 87, 56, 23, 6, 1
0, 169, 245, 185, 91, 31, 7, 1
... (End)
|
|
MAPLE
|
A164981 := proc(n, k) option remember; if n <1 or k<1 or k>n then 0; elif n = 1 then 1; else 2*procname(n-1, k)+procname(n-1, k-1)+procname(n-2, k)-procname(n-2, k-1) ; end if; end proc:
|
|
MATHEMATICA
|
T[n_, k_] := T[n, k] = Which[n < 1 || k < 1 || k > n, 0, n == 1, 1, True, 2*T[n-1, k] + T[n-1, k-1] + T[n-2, k] - T[n-2, k-1]];
|
|
PROG
|
(PARI) T(n, k) = if ((n==1) && (k==1), return(1)); if ((n<=0) || (k<=0) || (n<k), return(0)); 2*T(n-1, k)+T(n-1, k-1)+T(n-2, k)-T(n-2, k-1); \\ Michel Marcus, Feb 01 2023
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|