OFFSET
2,1
COMMENTS
a(n) = n if and only if n is prime.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 2..1000
EXAMPLE
a(12) = 3, since the prime factors of 12 are 2 and 3, the average of 2 and 3 is 2.5, and the nearest integer to 2.5 is 3 (the larger number is chosen when the average is a half-integer).
MATHEMATICA
Table[Floor[Mean[FactorInteger[n][[All, 1]]]+1/2], {n, 2, 80}] (* Harvey P. Dale, Sep 23 2016 *)
PROG
(PARI) for(n=2, 79, o=omega(n); s=sum(i=1, o, factor(n)[, 1][i]); print1(round(s/o), ", "));
CROSSREFS
KEYWORD
nonn
AUTHOR
Arkadiusz Wesolowski, Sep 11 2013
STATUS
approved