OFFSET
0,2
COMMENTS
2 - 3 = 1, 3 - 5 = 2, 5 - 7 = 2, 7 - 11 = 4 + 7 - 13 = 6 ==> 4 + 6 = 10, 11 - 13 = 2 + 11 - 17 = 6 + 11 - 19 = 8 ==> 2 + 6 + 8 = 16.
MAPLE
A179789 := proc(n) a :=0 ; for q from ithprime(n)+1 to 2*ithprime(n) do if isprime(q) then a := a+q-ithprime(n) ; end if; end do: a ; end proc: seq(A179789(n), n=1..50) ; # R. J. Mathar, Sep 19 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Odimar Fabeny, Jul 27 2010
EXTENSIONS
Extended by R. J. Mathar, Sep 19 2010
STATUS
approved