login
A381399
a(n) is the number of prime elements in the set of bases and exponents in the prime factorization of n.
5
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,6
COMMENTS
Differs from A115588 at n = 64, 81, 256, 320, 405, 448, 512... = A381400.
EXAMPLE
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.
MATHEMATICA
A381399[n_] := Count[Union[Flatten[FactorInteger[n]]], _?PrimeQ];
Array[A381399, 100]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo Xausa, Feb 22 2025
STATUS
approved