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.

A381178 Irregular triangle read by rows, where row n lists the elements of the multiset of bases and exponents (including exponents = 1) in the prime factorization of n.

Original entry on oeis.org

1, 2, 1, 3, 2, 2, 1, 5, 1, 1, 2, 3, 1, 7, 2, 3, 2, 3, 1, 1, 2, 5, 1, 11, 1, 2, 2, 3, 1, 13, 1, 1, 2, 7, 1, 1, 3, 5, 2, 4, 1, 17, 1, 2, 2, 3, 1, 19, 1, 2, 2, 5, 1, 1, 3, 7, 1, 1, 2, 11, 1, 23, 1, 2, 3, 3, 2, 5, 1, 1, 2, 13, 3, 3, 1, 2, 2, 7, 1, 29, 1, 1, 1, 2, 3, 5, 1, 31
Offset: 2

Views

Author

Paolo Xausa, Feb 27 2025

Keywords

Comments

Terms in each row are sorted; cf. A035306, where they are given in (base, exponent) groups.

Examples

			Triangle begins:
   [2]  1, 2;
   [3]  1, 3;
   [4]  2, 2;
   [5]  1, 5;
   [6]  1, 1, 2, 3;
   [7]  1, 7;
   [8]  2, 3;
   [9]  2, 3;
  [10]  1, 1, 2, 5;
  ...
The prime factorization of 10 is 2^1*5^1 and the multiset of these bases and exponents is {1, 1, 2, 5}.
The prime factorization of 132 is 2^2*3^1*11^1 and the multiset of these bases and exponents is {1, 1, 2, 2, 3, 11}.
		

Crossrefs

Cf. A000026 (row products), A001221 (row lengths, divided by 2), A008474 (row sums).
Cf. A081812 (right border), A381212 (first column), A381576 (second column).

Programs

  • Mathematica
    A381178row[n_] := Sort[Flatten[FactorInteger[n]]];
    Array[A381178row, 30, 2]