A375360 The maximum exponent in the prime factorization of the smallest exponentially odd number that is divisible by n.
0, 1, 1, 3, 1, 1, 1, 3, 3, 1, 1, 3, 1, 1, 1, 5, 1, 3, 1, 3, 1, 1, 1, 3, 3, 1, 3, 3, 1, 1, 1, 5, 1, 1, 1, 3, 1, 1, 1, 3, 1, 1, 1, 3, 3, 1, 1, 5, 3, 3, 1, 3, 1, 3, 1, 3, 1, 1, 1, 3, 1, 1, 3, 7, 1, 1, 1, 3, 1, 1, 1, 3, 1, 1, 3, 3, 1, 1, 1, 5, 5, 1, 1, 3, 1, 1, 1, 3, 1, 3, 1, 3, 1, 1, 1, 5, 1, 3, 3, 3, 1, 1, 1, 3, 1
Offset: 1
Links
Programs
-
Mathematica
a[n_] := Module[{e = FactorInteger[n][[;; , 2]]}, Max[(If[OddQ[#], #, # + 1]) & /@ e]]; a[1] = 0; Array[a, 100]
-
PARI
a(n) = if(n == 1, 0, vecmax(apply(x -> if(x % 2, x, x+1), factor(n)[,2])));
Comments