A375033 The maximum even exponent in the prime factorization of n, or 0 if no such exponent exists.
0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 4, 0, 2, 0, 2, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 4, 2, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 6, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 2, 2, 0, 0, 0, 4, 4, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0
Offset: 1
Links
Programs
-
Mathematica
a[n_] := Max[0, Max[Select[FactorInteger[n][[;; , 2]], EvenQ]]]; a[1] = 0; Array[a, 100]
-
PARI
a(n) = {my(e = select(x -> !(x % 2), factor(n)[,2])); if(#e == 0, 0, vecmax(e));}
Formula
a(n) = 0 if and only if n is an exponentially odd number (A268335).
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = Sum_{k>=1} (2*k) * d(k) = 0.72584606502990528747..., where d(k) is defined in the Comments section above.
Comments