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.

A261997 a(n) = prime(n)! - prime(n!).

Original entry on oeis.org

0, 3, 107, 4951, 39916141, 6227015357, 355687428046967, 121645100408347963, 25852016738884971417571, 8841761993739701954543554805353, 8222838654177922817725562105174617
Offset: 1

Views

Author

Altug Alkan, Sep 08 2015

Keywords

Comments

a(n) is prime for n = 2, 3, 4, 5, 7.

Examples

			For n=2, a(n) = prime(n)! - prime(n!) = prime(2)! - prime(2!) = 3.
		

Crossrefs

Programs

  • Mathematica
    Array[Prime[#]! - Prime[#!] &, {11}] (* Michael De Vlieger, Sep 08 2015 *)
  • PARI
    vector(11, n, prime(n)! - prime(n!))

Formula

a(n) = A039716(n) - A062439(n).
log a(n) ~ n log^2 n. - Charles R Greathouse IV, Sep 08 2015