cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A181854 Triangle read by rows: Partial row sums of A181853(n,k).

Original entry on oeis.org

1, 1, 2, 1, 4, 6, 1, 7, 18, 24, 1, 11, 42, 76, 88, 1, 16, 97, 286, 468, 528, 1, 22, 163, 556, 1050, 1332, 1392, 1, 29, 317, 1697, 4942, 8682, 10716, 11136, 1, 37, 493, 3209, 11502, 24770, 36108, 41016, 41856
Offset: 0

Views

Author

Peter Luschny, Dec 06 2010

Keywords

Examples

			[0]   1
[1]   1    2
[2]   1    4     6
[3]   1    7    18    24
[4]   1   11    42    76     88
[5]   1   16    97   286    468    528
[6]   1   22   163   556   1050   1332   1392
		

Crossrefs

Programs

  • Maple
    with(combstruct):
    a181854_row := proc(n) local k,L,l,R,comb;
    R := NULL; L := 0;
    for k from 0 to n do
       comb := iterstructs(Combination(n),size=k):
       while not finished(comb) do
          l := nextstruct(comb);
          L := L + ilcm(op(l));
       od;
       R := R,L;
    od;
    R end:
  • Mathematica
    t[, 0] = 1; t[n, k_] := Sum[LCM @@ c, {c, Subsets[Range[n], {k}]}]; row[n_] := Table[t[n, k], {k, 0, n}] // Accumulate; Table[row[n], {n, 0, 8}] // Flatten (* Jean-François Alcover, Jul 30 2013 *)