OFFSET
2,1
EXAMPLE
The smallest and largest prime factors of 6 are 2 and 3, respectively, the average of which is 2.5, rounding off to 3. Hence a(6) = 3.
MATHEMATICA
f[n_] := Module[{p, l}, p = Transpose[FactorInteger[n]][[1]]; l = Length[p]; Ceiling[(p[[1]] + p[[l]])/2]]; Table[f[i], {i, 2, 100}]
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Joseph L. Pe, Oct 25 2002
STATUS
approved