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.

A037128 a(n) = nextprime(3^n) - nextprime(2^n).

Original entry on oeis.org

0, 2, 6, 18, 66, 214, 666, 2072, 6306, 19166, 58020, 175114, 527358, 1586122, 4766560, 14316138, 42981210, 129009096, 387158352, 1161737214, 3485735826, 10458256090, 31376865294, 94134790242, 282412759224, 847255054990, 2541798719452, 7625463267246, 22876524019528, 68629840494090, 205890058352826
Offset: 0

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    Table[NextPrime[3^n] - NextPrime[2^n], {n, 0, 30}] (* Vincenzo Librandi, Jan 22 2015 *)
  • PARI
    a(n) = nextprime(3^n+1)-nextprime(2^n+1); \\ Michel Marcus, Jan 22 2015

Formula

a(n) = A014211(n) - A014210(n). - Michel Marcus, Jan 22 2015

Extensions

More terms from Vincenzo Librandi, Jan 22 2015