OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
165 = 3*5*11, an odd number of prime divisors; the middle one is 5, so a(165) = 5. 315 = 3*3*5*7, an even number of prime divisors; the middle two are 3 and 5; their mean is 4, so a(315) = 4.
MATHEMATICA
mpd[n_]:=Median[Flatten[Table[#[[1]], #[[2]]]&/@FactorInteger[n]]]; Table[ mpd[ n], {n, 3, 201, 2}] (* Harvey P. Dale, Dec 03 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Franklin T. Adams-Watters, Jun 27 2006
STATUS
approved