OFFSET
0,13
COMMENTS
A(n,k) is the number of partitions of n in which no parts are multiples of k.
A(n,k) is also the number of partitions of n into at most k-1 copies of each part.
LINKS
Seiichi Manyama, Antidiagonals n = 0..139, flattened
Eric Weisstein's World of Mathematics, Partition Function b_k
FORMULA
G.f. of column k: Product_{j>=1} (1 - x^(k*j))/(1 - x^j).
EXAMPLE
Square array begins:
1, 1, 1, 1, 1, 1, ...
0, 1, 1, 1, 1, 1, ...
0, 1, 2, 2, 2, 2, ...
0, 2, 2, 3, 3, 3, ...
0, 2, 4, 4, 5, 5, ...
0, 3, 5, 6, 6, 7, ...
MAPLE
b:= proc(n, i, k) option remember; `if`(n=0, [1, 0], `if`(k*i*(i+1)/2<n, 0,
add((l->[0, l[1]*j]+l)(b(n-i*j, i-1, k)), j=0..min(n/i, k))))
end:
A:= (n, k)-> b(n$2, k-1)[1]:
seq(seq(A(n, 1+d-n), n=0..d), d=0..16); # Alois P. Heinz, Oct 17 2018
MATHEMATICA
Table[Function[k, SeriesCoefficient[Product[(1 - x^(i k))/(1 - x^i), {i, Infinity}], {x, 0, n}]][j - n + 1], {j, 0, 12}, {n, 0, j}] // Flatten
Table[Function[k, SeriesCoefficient[QPochhammer[x^k, x^k]/QPochhammer[x, x], {x, 0, n}]][j - n + 1], {j, 0, 12}, {n, 0, j}] // Flatten
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Ilya Gutkovskiy, May 11 2017
STATUS
approved