|
|
A255767
|
|
Triangle read by rows: T(n,k) = sum of all parts of all partitions of n into k distinct parts.
|
|
2
|
|
|
1, 4, 6, 3, 12, 8, 10, 25, 24, 36, 6, 14, 77, 14, 32, 104, 40, 27, 153, 90, 40, 220, 150, 10, 22, 297, 275, 22, 72, 348, 444, 60, 26, 481, 676, 130, 56, 616, 938, 280, 60, 660, 1455, 450, 15, 80, 880, 1872, 832, 32, 34, 1003, 2618, 1309, 85, 108, 1224, 3312, 2106, 180, 38, 1349, 4465, 3078, 380, 120, 1620, 5540, 4540, 720
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Row n has length A003056(n) hence the first element of column k is in row A000217(n).
The first element of column k is A000217(k).
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
Triangle begins:
1;
4;
6, 3;
12, 8;
10, 25;
24, 36, 6;
14, 77, 14;
32, 104, 40;
27, 153, 90;
40, 220, 150, 10;
22, 297, 275, 22;
72, 348, 444, 60;
26, 481, 676, 130;
56, 616, 938, 280;
60, 660, 1455, 450, 15;
80, 880, 1872, 832, 32;
34, 1003, 2618, 1309, 85;
108, 1224, 3312, 2106, 180;
38, 1349, 4465, 3078, 380;
...
|
|
MAPLE
|
floor((sqrt(1+8*n)-1)/2) ;
end proc:
nDiffParts := proc(L)
nops(convert(L, set)) ;
end proc:
local a, L;
a :=0 ;
for L in combinat[partition](n) do
if nDiffParts(L) = k then
a := a+1 ;
end if;
end do:
a ;
end proc:
end proc:
for n from 1 to 20 do
end do:
printf("\n") ;
# second Maple program:
b:= proc(n, i) option remember; local j; if n=0 then 1
elif i<1 then 0 else []; for j from 0 to n/i do zip((x, y)
->x+y, %, [`if`(j>0, 0, [][]), b(n-i*j, i-1)], 0) od; %[] fi
end:
T:= n-> subsop(1=NULL, n*[b(n, n)])[]:
|
|
MATHEMATICA
|
nmax = 30; T = Rest[CoefficientList[#, t]]& /@ Rest[CoefficientList[-1 + Product[1 + t x^j/(1 - x^j), {j, 1, nmax}] + O[x]^(nmax+1), x]];
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|