OFFSET
1,1
COMMENTS
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..1000
EXAMPLE
a(10) = 155 because 4 + 6 + 9 + 10 + 14 + 15 + 21 + 22 + 25 + 26 = 152, and the next semiprime after 152 is 155.
MAPLE
h:= proc(m) local k;
for k from m+1 while isprime(k) or
add (i[2], i=ifactors(k)[2])<>2 do od; k
end:
b:= proc(n)
b(n):= h(b(n-1))
end: b(0):=0:
s:= proc(n)
s(n):= b(n) +s(n-1)
end: s(0):=0:
a:= n-> h(s(n)):
seq (a(n), n=1..60); # Alois P. Heinz, Apr 10 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jonathan Vos Post, Apr 10 2012
EXTENSIONS
More terms from Alois P. Heinz, Apr 10 2012
STATUS
approved