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.

A381399 a(n) is the number of prime elements in the set of bases and exponents in the prime factorization of n.

Original entry on oeis.org

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

Views

Author

Paolo Xausa, Feb 22 2025

Keywords

Comments

Differs from A115588 at n = 64, 81, 256, 320, 405, 448, 512... = A381400.

Examples

			a(144) = 2 because the prime factorization of 144 is 2^4*3^2 and the set of these bases and exponents is {2, 3, 4}, containing 2 primes.
		

Crossrefs

Programs

  • Mathematica
    A381399[n_] := Count[Union[Flatten[FactorInteger[n]]], _?PrimeQ];
    Array[A381399, 100]