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-3 of 3 results.

A230098 a(n) = n*prime(prime(n)) - prime(n)^2.

Original entry on oeis.org

-1, 1, 8, 19, 34, 77, 124, 175, 218, 249, 436, 515, 646, 825, 956, 1047, 1228, 1373, 1800, 2019, 2378, 2581, 3024, 3143, 3316, 4021, 4592, 4987, 5490, 5741, 5850, 6487, 6740, 7777, 7864, 8771, 9354, 10177, 10760, 11311, 11542, 12893, 13098, 14275, 15236, 16381, 16438, 17903, 18688, 19909, 20732, 20827, 22638
Offset: 1

Views

Author

N. J. A. Sloane, Oct 12 2013

Keywords

Programs

  • Magma
    [n*NthPrime(NthPrime(n)) - NthPrime(n)^2: n in [1..60]]; // Vincenzo Librandi, Oct 13 2013
    
  • Mathematica
    Table[n Prime[Prime[n]]-Prime[n]^2,{n,60}] (* Harvey P. Dale, Mar 16 2017 *)
  • PARI
    a(n) = n*prime(prime(n)) - prime(n)^2; \\ Joerg Arndt, Oct 21 2013

Formula

a(n) = A080697(n) - A001248(n). - Omar E. Pol, Oct 21 2013

A230285 a(n) = n*prime(prime(n)) - prime(n).

Original entry on oeis.org

1, 7, 28, 61, 144, 233, 396, 517, 724, 1061, 1366, 1847, 2286, 2631, 3118, 3803, 4650, 5033, 6222, 6989, 7634, 8743, 9830, 10975, 12628, 14121, 15098, 16329, 17262, 18397, 21852, 23517, 25372, 26959, 29916, 31421, 33846, 36583, 38482, 41067, 43404, 45473
Offset: 1

Views

Author

V.J. Pohjola, Oct 15 2013

Keywords

Comments

First published at Sequence Fans Mailing List on Oct 12 2013.

Crossrefs

Programs

  • Mathematica
    Table[n*Prime[Prime[n]] - Prime[n], {n, 1, 100}]
  • PARI
    a(n) = n*prime(prime(n)) - prime(n) \\ Charles R Greathouse IV, Oct 15 2013

Formula

a(n) = A080697(n) - A000040(n). - Omar E. Pol, Oct 21 2013

A228529 a(n) = prime(n*prime(n)).

Original entry on oeis.org

3, 13, 47, 107, 257, 397, 653, 881, 1279, 1889, 2293, 3119, 3847, 4423, 5323, 6563, 7937, 8819, 10391, 11833, 12889, 14831, 16477, 18713, 21599, 23603, 25189, 27409, 29063, 31511, 37159, 39869, 43321, 45589, 50923, 53281, 57271, 61561, 65173, 69821, 74383
Offset: 1

Views

Author

Omar E. Pol, Oct 20 2013

Keywords

Examples

			For n = 2, prime(2*prime(2)) = prime(2*3) = prime(6) = 13, so a(2) = 13.
		

Crossrefs

Programs

  • Mathematica
    Table[Prime[n*Prime[n]], {n, 100}] (* T. D. Noe, Oct 22 2013 *)
  • PARI
    a(n) = prime(n*prime(n)); \\ Michel Marcus, Oct 22 2013

Formula

a(n) = A000040(A033286(n)).
Showing 1-3 of 3 results.