OFFSET
1,3
COMMENTS
a(n) is like a real-valued footprint of n.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
FORMULA
MAPLE
with(numtheory):
a:= n-> pi(max(factorset(n)))*max(0, seq(i[2], i=ifactors(n)[2])):
seq(a(n), n=1..100); # Alois P. Heinz, Jun 11 2020
MATHEMATICA
a[n_] := PrimePi[(f = FactorInteger[n])[[-1, 1]]] * Max[f[[;; , 2]]]; Array[a, 100] (* Amiram Eldar, Jun 11 2020 *)
PROG
(PARI) a(n) = if (n==1, 0, my(f=factor(n)); primepi(vecmax(f[, 1]))*vecmax(f[, 2])); \\ Michel Marcus, Jun 11 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Todor Szimeonov, Jun 11 2020
EXTENSIONS
Edited by N. J. A. Sloane, Jun 15 2020
STATUS
approved