A181842 Triangle read by rows: T(n,k) = Sum_{c in partition(n,n-k+1)} lcm(c).
1, 1, 2, 1, 2, 3, 1, 2, 5, 4, 1, 2, 5, 10, 5, 1, 2, 5, 12, 12, 6, 1, 2, 5, 12, 18, 28, 7, 1, 2, 5, 12, 20, 38, 32, 8, 1, 2, 5, 12, 20, 44, 57, 48, 9, 1, 2, 5, 12, 20, 46, 67, 100, 55, 10
Offset: 1
Examples
[1] 1 [2] 1 2 [3] 1 2 3 [4] 1 2 5 4 [5] 1 2 5 10 5 [6] 1 2 5 12 12 6 [7] 1 2 5 12 18 28 7
Programs
-
Maple
with(combstruct): a181842_row := proc(n) local k,L,l,R,part; R := NULL; for k from 1 to n do L := 0; part := iterstructs(Partition(n),size=n-k+1): while not finished(part) do l := nextstruct(part); L := L + ilcm(op(l)); od; R := R,L; od; R end:
-
Mathematica
t[n_, k_] := LCM @@@ IntegerPartitions[n, {n - k + 1}] // Total; Table[t[n, k], {n, 1, 10}, {k, 1, n}] // Flatten (* Jean-François Alcover, Jul 26 2013 *)
Comments