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.

Showing 1-2 of 2 results.

A213926 prime(n^2) - prime(n).

Original entry on oeis.org

0, 4, 18, 46, 86, 138, 210, 292, 396, 512, 630, 790, 968, 1150, 1380, 1566, 1820, 2082, 2370, 2670, 3010, 3382, 3720, 4122, 4540, 4950, 5416, 5900, 6372, 6884, 7446, 8030, 8600, 9202, 9782, 10476, 11164, 11886, 12576, 13326, 14148, 14920, 15686, 16554, 17412
Offset: 1

Views

Author

Vincenzo Librandi, Mar 06 2013

Keywords

Crossrefs

Programs

  • Magma
    [NthPrime(n^2)-NthPrime(n): n in [1..40]];
    
  • Maple
    A213926 := proc(n) ithprime(n^2)-ithprime(n) ; end proc: seq(A213926(n), n=1..40) ;
  • Mathematica
    Table[Prime[n^2] - Prime[n], {n, 40}]
  • PARI
    a(n)=prime(n^2)-prime(n) \\ Charles R Greathouse IV, Mar 21 2014

Formula

a(n) = A000040(n^2) - A000040(n).

A214612 prime(n^3) - prime(n).

Original entry on oeis.org

0, 16, 98, 304, 680, 1308, 2292, 3652, 5496, 7890, 10926, 14716, 19362, 24766, 31272, 38820, 47598, 57498, 68964, 81728, 96064, 112212, 129990, 149628, 171432, 194942, 220758, 248744, 279322, 312470, 347580, 385962, 427032, 470794, 517404, 567720, 620374
Offset: 1

Views

Author

Jonathan Vos Post, Mar 06 2013

Keywords

Comments

This is to exponent 3 as A213926 is to exponent 2.

Examples

			a(1) = prime(1^3) - prime(1) = 2-2 = 0.
a(2) = prime(2^3) - prime(2) = 19-3 = 16.
a(3) = prime(3^3) - prime(3) = 103-5 = 98.
		

Crossrefs

Programs

  • Mathematica
    Table[Prime[n^3] - Prime[n], {n, 50}] (* T. D. Noe, Mar 07 2013 *)
Showing 1-2 of 2 results.