OFFSET
1,1
FORMULA
EXAMPLE
a(1) = 6 since 6 = 3 * 2, the smallest composite number whose prime divisors add to 5, is a multiple of 3, the greatest prime < 5, where 5 = A293652(1).
a(2) = 6501 since 6501 = 3 * 11 * 197, the smallest composite whose prime divisors add to 211, and 197 < 199 < 211 is the second prime below 211, where 211 = A293652(2)
a(3) = 526809 since 526809 = 3 * 41 * 4283, the smallest composite whose prime divisors add to 4327, and 4283 < 4289 < 4297 < 4327 is the third prime below 4327, where 4327 = A293652(3).
PROG
(PARI) sopfr(k) = my(f=factor(k)); sum(j=1, #f~, f[j, 1]*f[j, 2]); \\ A001414
isok(k, n) = sopfr(k) == n;
a056240(n) = my(k=2); while(!isok(k, n), k++); k;
a(p, n) = {newp = p; for (k=1, n, newp = precprime(newp-1)); newp*a056240(p-newp); }
lista() = {vp = [5, 211, 4327, 4547, ..., ]; /* A293652 */ for (n=1, #vp, print1(chk(vp[n], n), ", "); ); }
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Nov 23 2018
STATUS
approved