OFFSET
1,3
COMMENTS
Number of ways to factor p^(n-k)*q^k where p and q are distinct primes and each factor is a multiple of q.
LINKS
Alois P. Heinz, Rows n = 1..141, flattened
FORMULA
G.f.: A(x,y) = Product_{i>=1, j=1..i} (1/(1-x^i*y^j)).
EXAMPLE
1;
1, 2;
1, 2, 3;
1, 3, 4, 5;
1, 3, 6, 7, 7; ...
MAPLE
b:= proc(n, i, j, k) option remember; `if`(n=0, `if`(k=0, 1, 0),
`if`(i<1 or k<1, 0, `if`(j<1, b(n, i-1, i-1, k),
b(n, i, j-1, k)+`if`(i>n or j>k, 0, b(n-i, i, j, k-j)))))
end:
a:= (n, k)-> b(n$2, k$2):
seq(seq(a(n, k), k=1..n), n=1..15); # Alois P. Heinz, Mar 14 2015
MATHEMATICA
b[n_, i_, j_, k_] := b[n, i, j, k] = If[n == 0, If[k == 0, 1, 0], If[i < 1 || k < 1, 0, If[j < 1, b[n, i - 1, i - 1, k], b[n, i, j - 1, k] + If[i > n || j > k, 0, b[n - i, i, j, k - j]]]]]; a[n_, k_] := b[n, n, k, k]; Table[a[n, k], {n, 1, 15}, {k, 1, n}] // Flatten (* Jean-François Alcover, Jan 10 2016, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Wouter Meeussen and Christian G. Bower, Jan 08 2004
STATUS
approved