cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A179789 Sum of the differences between the first prime and the next, inside in the first jump in a Sieve of Eratosthenes table.

Original entry on oeis.org

1, 2, 2, 10, 16, 20, 34, 44, 66, 78, 124, 182, 184, 206, 212, 300, 386, 360, 412, 494, 466, 608, 628, 700, 928, 1046, 1006, 1034, 996, 1034, 1440, 1474, 1728, 1816, 1976, 1922, 2226, 2212, 2264, 2260, 2604, 2722, 2968, 3094, 3158, 3292, 3714, 4148, 4218, 4370
Offset: 0

Views

Author

Odimar Fabeny, Jul 27 2010

Keywords

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.

Crossrefs

Programs

  • 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

Extensions

Extended by R. J. Mathar, Sep 19 2010