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.

A328368 Irregular triangle read by rows: T(n,k) is the total number of parts in all partitions of all positive integers <= n into k consecutive parts.

Original entry on oeis.org

1, 2, 3, 2, 4, 2, 5, 4, 6, 4, 3, 7, 6, 3, 8, 6, 3, 9, 8, 6, 10, 8, 6, 4, 11, 10, 6, 4, 12, 10, 9, 4, 13, 12, 9, 4, 14, 12, 9, 8, 15, 14, 12, 8, 5, 16, 14, 12, 8, 5, 17, 16, 12, 8, 5, 18, 16, 15, 12, 5, 19, 18, 15, 12, 5, 20, 18, 15, 12, 10, 21, 20, 18, 12, 10, 6, 22, 20, 18, 16, 10, 6, 23, 22, 18, 16, 10, 6
Offset: 1

Views

Author

Omar E. Pol, Nov 02 2019

Keywords

Comments

Column k lists k times every nonzero multiple of k in nondecreasing order.
Column k lists the partial sums of the k-th column of triangle A285914.

Examples

			Triangle begins:
   1;
   2;
   3,  2;
   4,  2;
   5,  4;
   6,  4,  3;
   7,  6,  3;
   8,  6,  3;
   9,  8,  6;
  10,  8,  6,  4;
  11, 10,  6,  4;
  12, 10,  9,  4;
  13, 12,  9,  4;
  14, 12,  9,  8;
  15, 14, 12,  8,  5;
  16, 14, 12,  8,  5;
  17, 16, 12,  8,  5;
  18, 16, 15, 12,  5;
  19, 18, 15, 12,  5;
  20, 18, 15, 12, 10;
  21, 20, 18, 12, 10,  6;
  22, 20, 18, 16, 10,  6;
  23, 22, 18, 16, 10,  6;
  24, 22, 21, 16, 10,  6;
  25, 24, 21, 16, 15,  6;
  26, 24, 21, 20, 15,  6;
  27, 26, 24, 20, 15, 12;
  28, 26, 24, 20, 15, 12, 7;
...
		

Crossrefs

Row sums give A285899.
Row n has length A003056(n).
Column 1 gives A000027.
Column k starts with k in the row A000217(k).

Programs

  • PARI
    tt(n, k) = k*(if (k % 2, (n % k) == 0, ((n - k/2) % k) == 0)); \\ A285891
    t(n, k) = sum(j=k*(k+1)/2, n, tt(j, k));
    tabf(nn) = {for (n=1, nn, for (k=1, floor((sqrt(1+8*n)-1)/2), print1(t(n, k), ", "); ); print(); ); } \\ Michel Marcus, Nov 04 2019