OFFSET
0,6
COMMENTS
A(n,k) is the number of compositions of n into parts k and k+1.
LINKS
Seiichi Manyama, Antidiagonals n = 0..139, flattened
FORMULA
A(n,k) = Sum_{j=0..floor(n/k)} binomial(j,n-k*j).
EXAMPLE
Square array begins:
1, 1, 1, 1, 1, 1, 1, 1, 1, ...
1, 0, 0, 0, 0, 0, 0, 0, 0, ...
2, 1, 0, 0, 0, 0, 0, 0, 0, ...
3, 1, 1, 0, 0, 0, 0, 0, 0, ...
5, 1, 1, 1, 0, 0, 0, 0, 0, ...
8, 2, 0, 1, 1, 0, 0, 0, 0, ...
13, 2, 1, 0, 1, 1, 0, 0, 0, ...
21, 3, 2, 0, 0, 1, 1, 0, 0, ...
34, 4, 1, 1, 0, 0, 1, 1, 0, ...
55, 5, 1, 2, 0, 0, 0, 1, 1, ...
MATHEMATICA
T[n_, k_] := Sum[Binomial[j, n-k*j], {j, 0, Floor[n/k]}]; Table[T[k, n - k + 1], {n, 0, 12}, {k, 0, n}] // Flatten (* Amiram Eldar, Jun 21 2021 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Seiichi Manyama, Mar 05 2019
STATUS
approved