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.

A275988 a(n) = prime(3n) - prime(n).

Original entry on oeis.org

3, 10, 18, 30, 36, 48, 56, 70, 80, 84, 106, 114, 126, 138, 150, 170, 174, 190, 202, 210, 234, 238, 264, 270, 282, 296, 316, 326, 340, 350, 360, 372, 386, 418, 422, 442, 450, 456, 476, 486, 498, 520, 536, 550, 564, 588, 600, 604, 626, 634, 650, 672, 696, 702, 720, 734, 750, 762, 774
Offset: 1

Views

Author

Terry D. Grant, Aug 15 2016

Keywords

Examples

			For n=3, prime(3n) = 23, and prime(n) = 5, therefore a(3) = 23 - 5 = 18.
		

Crossrefs

Programs

  • Mathematica
    Table[Prime[3n] - Prime[n], {n, 1, 100}]
  • PARI
    a(n) = prime(3*n) - prime(n); \\ Michel Marcus, Aug 18 2016

Formula

a(n) = A031336(n) - A000040(n).