A374587 The maximum exponent in the prime factorization of the numbers that are not coprime to the maximum exponent in their prime factorization.
2, 2, 4, 2, 2, 3, 3, 2, 2, 2, 4, 2, 2, 3, 2, 6, 2, 3, 2, 4, 2, 2, 2, 2, 2, 3, 4, 2, 3, 2, 2, 2, 3, 2, 4, 2, 2, 2, 5, 4, 2, 3, 2, 4, 2, 2, 3, 6, 2, 2, 2, 4, 2, 3, 2, 2, 2, 2, 4, 2, 2, 2, 8, 2, 3, 2, 3, 4, 2, 2, 2, 2, 3, 2, 4, 2, 2, 3, 2, 6, 4, 2, 4, 2, 2, 2, 2
Offset: 1
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
f[n_] := Module[{e = If[n == 1, 0, Max[FactorInteger[n][[;; , 2]]]]}, If[!CoprimeQ[n, e], e, Nothing]]; Array[f, 350]
-
PARI
lista(kmax) = {my(e); for(k = 2, kmax, e = vecmax(factor(k)[, 2]); if(gcd(k, e) > 1, print1(e, ", ")));}