OFFSET
2,1
LINKS
Michel Marcus, Table of n, a(n) for n = 2..500
FORMULA
For p prime, a(p) = p^2 (see A001248).
PROG
(PARI) sopfr(n) = my(f=factor(n)); sum(j=1, #f~, f[j, 1]*f[j, 2]);
sopf(n) = my(f=factor(n)); sum(j=1, #f~, f[j, 1]);
a(n) = {my(k = 2); while (sopfr(k) - sopf(k) != n, k++); k; }
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Dec 31 2016
STATUS
approved