OFFSET
2,1
COMMENTS
LINKS
Paolo P. Lava, Table of n, a(n) for n = 2..1000
EXAMPLE
Prime factor of 15 are 3 and 5: (3 + 5) / 2 = 4 and no other number less than 15 has arithmetic mean of all its prime factors, counted with multiplicity, equal to 4.
MAPLE
with(numtheory): P:= proc(q) local a, b, i, k, n; for i from 2 to q do
for n from 2 to q do a:=ifactors(n)[2]; b:=add(a[k][1]*a[k][2], k=1..nops(a))/add(a[k][2], k=1..nops(a));
if type(b, integer) then if i=b then lprint(b, n); break; fi; fi; od; od; end: P(10^9);
PROG
(PARI) ampf(n) = my(f = factor(n)); (sum(k=1, #f~, f[k, 1]*f[k, 2]) / vecsum(f[, 2]));
a(n) = {m = 2; while (ampf(m) != n, m++); m; } \\ Michel Marcus, Feb 22 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Paolo P. Lava, Feb 22 2016
STATUS
approved