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.

A135373 a(n) = prime(2^(n + 1)) - prime(2^n).

Original entry on oeis.org

1, 4, 12, 34, 78, 180, 408, 900, 2052, 4490, 9702, 21010, 45144, 96486, 205590, 435548, 920896, 1938594, 4072946, 8535970, 17845982, 37242540, 77569570, 161300102, 334906956, 694329000, 1437620932, 2972973918, 6141189354, 12672042908, 26122458858, 53799031890
Offset: 0

Views

Author

Marvin Ray Burns, Dec 09 2007

Keywords

Crossrefs

Programs

  • Mathematica
    Table[Prime[2^(n + 1)] - Prime[2^n], {n, 0, 40}]
    #[[2]]-#[[1]]&/@Partition[Prime[2^Range[0,30]],2,1] (* Harvey P. Dale, Feb 21 2015 *)
  • PARI
    a(n) = prime(2^(n + 1)) - prime(2^n); \\ Michel Marcus, Nov 15 2020

Formula

a(n) = A033844(n+1) - A033844(n). - Jinyuan Wang, Nov 14 2020

Extensions

a(29)-a(31) from Jinyuan Wang, Nov 14 2020