OFFSET
1,2
COMMENTS
LINKS
Alois P. Heinz, Rows n = 1..150, flattened
EXAMPLE
[1] 1
[2] 2 1
[3] 3 4 1
[4] 4 8 6 1
[5] 5 20 15 8 1
[6] 6 21 50 24 10 1
[7] 7 56 66 96 35 12 1
MAPLE
with(combstruct):
a181851_row := proc(n) local k, L, l, R, comp;
R := NULL;
for k from 1 to n do
L := 0;
comp := iterstructs(Composition(n), size=k):
while not finished(comp) do
l := nextstruct(comp);
L := L + ilcm(op(l));
od;
R := R, L;
od;
R end:
MATHEMATICA
c[n_, k_] := Permutations /@ IntegerPartitions[n, {k}] // Flatten[#, 1]&; t[n_, k_] := Total[LCM @@@ c[n, k]]; Table[t[n, k], {n, 1, 11}, {k, 1, n}] // Flatten (* Jean-François Alcover, Feb 05 2014 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Peter Luschny, Dec 07 2010
STATUS
approved