A375848 The maximum exponent in the prime factorization of the numbers whose maximum exponent in their prime factorization is an evil number (A374590).
0, 3, 3, 3, 5, 3, 3, 3, 6, 3, 3, 5, 3, 3, 3, 3, 3, 3, 3, 5, 3, 3, 3, 6, 3, 3, 5, 3, 5, 3, 3, 3, 3, 3, 5, 3, 3, 3, 6, 3, 3, 3, 3, 5, 3, 3, 3, 3, 3, 3, 5, 3, 3, 6, 3, 3, 3, 5, 5, 3, 3, 3, 9, 3, 3, 3, 3, 5, 3, 3, 6, 3, 3, 3, 5, 3, 3, 3, 3, 5, 3, 3, 3, 3, 3, 6, 3, 3, 6, 5, 3, 3, 3, 3, 3, 3, 3, 5, 3, 3, 6, 3, 3, 3, 5
Offset: 1
Links
Programs
-
Mathematica
evilQ[n_] := EvenQ[DigitCount[n, 2, 1]]; s[n_] := Module[{e = Max[FactorInteger[n][[;; , 2]]]}, If[evilQ[e], e, Nothing]]; s[1] = 0; Array[s, 1000]
-
PARI
lista(kmax) = {my(e); print1(0, ", "); for(k = 2, kmax, e = vecmax(factor(k)[,2]); if(!(hammingweight(e) % 2), print1(e, ", ")));}
Comments