OFFSET
1,6
COMMENTS
Lengths of rows are 1 1 2 2 2 3 3 3 3 4 4 4 4 4 ... (A003056).
EXAMPLE
MAPLE
compareL := proc(L1, L2)
if nops(L1) < nops(L2) then
-1 ;
elif nops(L1) > nops(L2) then
1;
else
for i from 1 to nops(L1) do
if op(i, L1) > op(i, L2) then
return 1 ;
elif op(i, L1) < op(i, L2) then
return -1 ;
end if;
end do:
0 ;
end if;
end proc:
A067627 := proc(n, k)
local a, p, s, pc ;
a := 0 ;
for p in combinat[partition](n) do
s := convert(p, set) ;
if nops(s) = k then
pc := combinat[conjpart](p) ;
if compareL(p, pc) <= 0 then
a := a+1 ;
end if;
end if;
end do:
a ;
end proc:
for n from 1 to 30 do
for k from A003056(n) to 1 by -1 do
printf("%4d, ", A067627(n, k)) ;
end do:
printf("\n") ;
end do: # R. J. Mathar, May 08 2019
CROSSREFS
KEYWORD
easy,nonn,tabf
AUTHOR
Naohiro Nomoto, Feb 02 2002
EXTENSIONS
More terms from R. J. Mathar, May 08 2019
STATUS
approved
