A295883 Number of exponents that are 3 in the prime factorization of n.
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1
Offset: 1
Keywords
Examples
For n = 8 = 2^3, there is one exponent that is exactly 3, thus a(8) = 1. For n = 216 = 2^3 * 3^3 there are two exponents that are exactly 3, thus a(216) = 2. For n = 432 = 2^4 * 3^3, there is one exponent that is exactly 3, thus a(432) = 1.
Links
Programs
-
Mathematica
Array[Total@ Map[Boole[# == 3] &, FactorInteger[#][[All, -1]]] &, 120] (* Michael De Vlieger, Nov 29 2017 *) Count[FactorInteger[#][[All,2]],3]&/@Range[120] (* Harvey P. Dale, Apr 13 2019 *)
-
PARI
a(n) = vecsum(apply(x->(x==3), factor(n)[,2])); \\ Michel Marcus, Jul 25 2022