A263323 The greater of maximal exponent and maximal prime index in the prime factorization of n.
0, 1, 2, 2, 3, 2, 4, 3, 2, 3, 5, 2, 6, 4, 3, 4, 7, 2, 8, 3, 4, 5, 9, 3, 3, 6, 3, 4, 10, 3, 11, 5, 5, 7, 4, 2, 12, 8, 6, 3, 13, 4, 14, 5, 3, 9, 15, 4, 4, 3, 7, 6, 16, 3, 5, 4, 8, 10, 17, 3, 18, 11, 4, 6, 6, 5, 19, 7, 9, 4, 20, 3, 21, 12, 3, 8, 5, 6, 22, 4
Offset: 1
Keywords
Examples
a(36)=2 because 36 is the product of 2 distinct primes (2*2*3*3), each not exceeding prime(2)=3, with multiplicity not exceeding 2.
Links
- G. C. Greubel, Table of n, a(n) for n = 1..5000
Programs
-
Mathematica
f[n_] := Max[ PrimePi[ Max @@ First /@ FactorInteger@n], Max @@ Last /@ FactorInteger@n]; Array[f, 80]
-
PARI
a(n) = if (n==1, 0, my(f = factor(n)); max(vecmax(f[,2]), primepi(f[#f~,1]))); \\ Michel Marcus, Oct 15 2015
Comments