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.

A339258 Triangle read by rows T(n,k), (n >= 1, k > = 1), in which row n has length A000070(n-1) and every column gives A000005, the number of divisors function.

Original entry on oeis.org

1, 2, 1, 2, 2, 1, 1, 3, 2, 2, 2, 1, 1, 1, 2, 3, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 4, 2, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 4, 2, 2, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 2, 4, 4, 2, 2, 2, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2
Offset: 1

Views

Author

Omar E. Pol, Nov 29 2020

Keywords

Comments

Conjecture: the sum of row n equals A006128(n), the total number of parts in all partitions of n.

Examples

			Triangle begins:
  1;
  2, 1;
  2, 2, 1, 1;
  3, 2, 2, 2, 1, 1, 1;
  2, 3, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1;
  4, 2, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1;
  2, 4, 2, 2, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, ...
  ...
		

Crossrefs

Row sums give A006128 (conjectured).

Programs

  • Mathematica
    A339258row[n_]:=Flatten[Table[ConstantArray[DivisorSigma[0,n-m],PartitionsP[m]],{m,0,n-1}]];Array[A339258row,10] (* Paolo Xausa, Sep 02 2023 *)
  • PARI
    f(n) = sum(k=0, n-1, numbpart(k));
    T(n, k) = {if (k > f(n), error("invalid k")); if (k==1, return (numdiv(n))); my(s=0); while (k <= f(n-1), s++; n--;); numdiv(1+s);}
    tabf(nn) = {for (n=1, nn, for (k=1, f(n), print1(T(n,k), ", ");); print;);} \\ Michel Marcus, Jan 13 2021

Formula

T(n,k) = A000005(A176206(n,k)).