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.

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

Original entry on oeis.org

118, 321, 1287, 2083, 4755, 6583, 11823, 23879, 28973, 49721, 67583, 77863, 102015, 146711, 202617, 223553, 297101, 353483, 384043, 487781, 565619, 698159, 904835, 1020981, 1082623, 1214535, 1283683, 1431123, 2035723, 2232075, 2554319, 2666981, 3288765
Offset: 1

Views

Author

Altug Alkan, Aug 20 2015

Keywords

Examples

			a(1) = 5^3 - 3^2 + 2 = 118.
		

Crossrefs

Programs

  • Magma
    [NthPrime(n+2)^3-NthPrime(n+1)^2+NthPrime(n): n in [1.. 35]]; // Vincenzo Librandi, Aug 20 2015
    
  • Mathematica
    Table[Prime[n + 2]^3 - Prime[n + 1]^2 + Prime[n], {n, 60}] (* Vincenzo Librandi, Aug 20 2015 *)
  • PARI
    vector(40, n, prime(n+2)^3-prime(n+1)^2+prime(n)) \\ Michel Marcus, Aug 20 2015

Formula

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

Extensions

More terms from Vincenzo Librandi, Aug 20 2015