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.

A136568 Irregular triangle read by rows: row n contains the distinct values (in numerical order) making up the nonzero exponents in the prime factorization of n. (Row 1 = (0).).

Original entry on oeis.org

0, 1, 1, 2, 1, 1, 1, 3, 2, 1, 1, 1, 2, 1, 1, 1, 4, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 3, 2, 1, 3, 1, 2, 1, 1, 1, 5, 1, 1, 1, 2, 1, 1, 1, 1, 3, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 4, 2, 1, 2, 1, 1, 2, 1, 1, 3, 1, 1, 3, 1, 1, 1, 1, 2, 1, 1, 1, 2, 6, 1, 1, 1, 1, 2, 1, 1
Offset: 1

Views

Author

Leroy Quet, Jan 07 2008

Keywords

Comments

Row n, for n>=2, contains A071625(n) terms.

Examples

			4200 = 2^3 * 3^1 * 5^2 * 7^1. The exponents of the prime factorization are therefore 3,1,2,1. Therefore row 4200 is (1,2,3).
Table begins:
  0;
  1;
  1;
  2;
  1;
  1;
  1;
  3;
  2;
  1;
  1;
  1, 2;
		

Crossrefs

Programs

  • Mathematica
    Join[{0},Flatten[Rest[Table[Union[Transpose[FactorInteger[n]][[2]]],{n,100}]]]] (* Harvey P. Dale, Mar 19 2013 *)
  • PARI
    row(n) = if(n == 1, [0], Set(factor(n)[,2])); \\ Amiram Eldar, Aug 04 2024

Extensions

More terms from Harvey P. Dale, Mar 19 2013