OFFSET
0,12
COMMENTS
LINKS
Alois P. Heinz, Rows n = 0..200, flattened
FORMULA
G.f.: Product_{i>=1}(1-x^h(i))/((1-x^i)*(1-t*x^h(i))), where h(i) = i^2.
EXAMPLE
T(8,2) = 6 because we have [6,1,1], [4,4], [4,3,1], [3,3,1,1], [2,2,2,1,1] (the partitions of 8 that have 2 perfect square parts.
Triangle starts:
1;
0, 1;
1, 0, 1;
1, 1, 0, 1;
1, 2, 1, 0, 1;
2, 1, 2, 1, 0, 1;
MAPLE
h:= proc(i) options operator, arrow: i^2 end proc: g := product((1-x^h(i))/((1-x^i)*(1-t*x^h(i))), i = 1 .. 80): gser := simplify(series(g, x = 0, 30)): for n from 0 to 18 do P[n] := sort(coeff(gser, x, n)) end do: for n from 0 to 18 do seq(coeff(P[n], t, j), j = 0 .. n) end do; # yields sequence in triangular form.
MATHEMATICA
Needs["Combinatorica`"]; Table[Count[Replace[#, n_ /; ! IntegerQ@ Sqrt@ n -> Nothing, {1}] & /@ Combinatorica`Partitions@ n, w_ /; Length@ w == k], {n, 0, 12}, {k, 0, n}] // Flatten (* Michael De Vlieger, Dec 19 2015 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Emeric Deutsch, Nov 12 2015
STATUS
approved