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.

A318950 Regular triangle where T(n,k) is the number of factorizations of n into factors > 1 with sum k.

Original entry on oeis.org

0, 0, 1, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 2, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0
Offset: 1

Views

Author

Gus Wiseman, Oct 22 2018

Keywords

Examples

			Triangle begins:
  0
  0 1
  0 0 1
  0 0 0 2
  0 0 0 0 1
  0 0 0 0 1 1
  0 0 0 0 0 0 1
  0 0 0 0 0 2 0 1
  0 0 0 0 0 1 0 0 1
  0 0 0 0 0 0 1 0 0 1
  0 0 0 0 0 0 0 0 0 0 1
  0 0 0 0 0 0 2 1 0 0 0 1
  0 0 0 0 0 0 0 0 0 0 0 0 1
  0 0 0 0 0 0 0 0 1 0 0 0 0 1
  0 0 0 0 0 0 0 1 0 0 0 0 0 0 1
  0 0 0 0 0 0 0 3 0 1 0 0 0 0 0 1
  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
  0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 1
  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
  0 0 0 0 0 0 0 0 2 0 0 1 0 0 0 0 0 0 0 1
Row 12 {0,0,0,0,0,0,2,1,0,0,0,1} corresponds to the factorizations:
  . . . . . . (3*4)   (2*6) . . . (12)
              (2*2*3)
		

Crossrefs

Row sums are A001055. Column sums are A002865.

Programs

  • Mathematica
    facs[n_]:=If[n<=1,{{}},Join@@Table[Map[Prepend[#,d]&,Select[facs[n/d],Min@@#>=d&]],{d,Rest[Divisors[n]]}]];
    Table[Length[Select[facs[n],Total[#]==k&]],{n,20},{k,n}]