A333352 a(n) is the product of indices of the smallest and greatest prime factors of n.
1, 1, 4, 1, 9, 2, 16, 1, 4, 3, 25, 2, 36, 4, 6, 1, 49, 2, 64, 3, 8, 5, 81, 2, 9, 6, 4, 4, 100, 3, 121, 1, 10, 7, 12, 2, 144, 8, 12, 3, 169, 4, 196, 5, 6, 9, 225, 2, 16, 3, 14, 6, 256, 2, 15, 4, 16, 10, 289, 3, 324, 11, 8, 1, 18, 5, 361, 7, 18, 4, 400, 2, 441, 12, 6, 8, 20, 6, 484, 3
Offset: 1
Keywords
Examples
a(315) = a(3^2 * 5 * 7) = a(prime(2)^2 * prime(3) * prime(4)) = 2 * 4 = 8.
Links
Crossrefs
Programs
-
Mathematica
a[1] = 1; a[n_] := PrimePi[FactorInteger[n] [[1, 1]]] PrimePi[ FactorInteger[ n] [[-1, 1]]]; Table[a[n], {n, 1, 80}]
-
PARI
a(n) = if (n==1, 1, my(f=factor(n)[,1]); primepi(vecmin(f))*primepi(vecmax(f))); \\ Michel Marcus, Mar 16 2020