OFFSET
0,5
FORMULA
T(n,k) = binomial(n,k) - [n mod 2 = k mod 2 = 0] * binomial(n/2,k/2).
EXAMPLE
Row n=8 is formed by taking row 8 of Pascal's triangle (1, 8, 28, 56, 70, 56, 28, 8, 1) and subtracting row 4 (1, 4, 6, 4, 1) spaced 2 apart. The numbers that overlap are 1, 28, 70, 28, 1 over 1, 4, 6, 4, 1, from which 1-1=0, 28-4=24, 70-6=64, 28-4=24, and 1-1=0. Thus, row 8 of the present triangle is 0, 8, 24, 56, 64, 56, 24, 8, 0.
Subtracting:
1; 1; 0,
1, 1; 1, 1;
1, 2, 1; - 1, 1; = 0, 2, 0;
1, 3, 3, 1; 1, 3, 3, 1;
1, 4, 6, 4, 1; 1, 2, 1; 0, 4, 4, 4, 0;
...
Resulting triangle begins:
k=0 1 2 3 4
n=0: 0;
n=1: 1, 1;
n=2: 0, 2, 0;
n=3: 1, 3, 3, 1;
n=4: 0, 4, 4, 4, 0;
...
CROSSREFS
KEYWORD
AUTHOR
J. Lowell, Jun 25 2023
STATUS
approved