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.

A262199 a(n) = prime(n)^3 - prime(n^3).

Original entry on oeis.org

6, 8, 22, 32, 640, 876, 2604, 3188, 6648, 16470, 18834, 35900, 49518, 54698, 72504, 110004, 157722, 169422, 231732, 276112, 292880, 380748, 441714, 555252, 741144, 835258, 871866, 976192, 1015598, 1130314, 1700676, 1861998, 2144184
Offset: 1

Views

Author

Altug Alkan, Sep 14 2015

Keywords

Comments

Commutator of (primes, cubes) at n.
All terms are even. For PrimePi(n^3) - PrimePi(n)^3 see A291538. - Jonathan Sondow, Sep 10 2017

Examples

			For n = 2, a(n) = prime(n)^3 - prime(n^3) = 3^3 - 19 = 8.
		

Crossrefs

Programs

  • Magma
    [NthPrime(n)^3 - NthPrime(n^3): n in [1..40]]; // Vincenzo Librandi, Sep 15 2015
  • Mathematica
    Table[Prime[n]^3 - Prime(n^3), {n, 40}] (* Alonso del Arte, Sep 14 2015 *)
  • PARI
    a(n) = prime(n)^3 - prime(n^3);
    vector(35,n,a(n))
    

Formula

a(n) = A030078(n) - A055875(n).
a(n) = A291542(n) + A291541(n). - Jonathan Sondow, Sep 10 2017