OFFSET
2,5
LINKS
Colin Barker, Table of n, a(n) for n = 2..1000
EXAMPLE
a(6) = 5 because the distinct prime factors of 6 are [2,3] and 2 / (1/2+1/3) = 12/5.
PROG
(PARI)
harmonicmean(v) = #v / sum(k=1, #v, 1/v[k])
a(n) = denominator(harmonicmean(factorint(n)~[1, ]))
vector(100, n, a(n+1))
CROSSREFS
KEYWORD
nonn
AUTHOR
Colin Barker, Nov 12 2014
STATUS
approved