OFFSET
1,1
COMMENTS
Values of k are 3, 4, 8, 5, 9, 9, 17, 25, 22, 18, 11, 15, 9, 20, 10, 12, 21, 26, 30, 25, 15, 14, 21, 30, 22, 26, 20, 13, 19, 11, ...
EXAMPLE
For 49, consider the prime factors of the next 3 numbers, 50, 51, 52: 2, 5, 5; 3, 17; 2, 2, 13. Their sum is 2 + 5 + 5 + 3 + 17 + 2 + 2 + 13 = 49.
For 132, consider the prime factors of the next 4 numbers, 133, 134, 135, 136: 7, 19; 2, 67; 3, 3, 3, 5; 2, 2, 2, 17. Their sum is 7 + 19 + 2 + 67 + 3 + 3 + 3 + 5 + 2 + 2 + 2 + 17 = 132.
MAPLE
with(numtheory): P:= proc(q) local a, d, j, k, n;
for n from 2 to q do if not isprime(n) then a:=0; k:=0;
while a<n do k:=k+1; d:=ifactors(n+k)[2];
d:=add(d[j][1]*d[j][2], j=1..nops(d));
a:=a+d; od; if a=n then print(n);
fi; fi; od; end: P(10^9);
PROG
(PARI) sopfr(n) = my(f=factor(n)); sum(k=1, #f~, f[k, 1]*f[k, 2]);
isok(n) = {my(s = 0); my(k = 1); while (s < n, s += sopfr(n+k); k++); s == n; }
lista(nn) = {forcomposite(n=2, nn, if (isok(n), print1(n, ", ")); ); } \\ Michel Marcus, May 27 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Paolo P. Lava, Apr 28 2015
STATUS
approved