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.

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

Original entry on oeis.org

-1, -1, 1, 17, 109, 707, 5023, 40301, 362857, 3628771, 39916769, 479001563, 6227020759, 87178291157, 1307674367953, 20922789887947, 355687428095941, 6402373705727939, 121645100408831933, 2432902008176639929, 51090942171709439927, 1124000727777607679921
Offset: 1

Views

Author

Altug Alkan, Sep 01 2015

Keywords

Examples

			For n=4, a(4) = 4! - prime(4) = 24 - 7 = 17.
		

Crossrefs

Programs

  • Magma
    [Factorial(n)-NthPrime(n): n in [1..30]]; // Vincenzo Librandi, Sep 02 2015
  • Mathematica
    Table[n! - Prime[n], {n,1,150}] (* G. C. Greubel, Sep 01 2015 *)
  • PARI
    vector(50, n, n!-prime(n))
    

Formula

a(n) = A000142(n) - A000040(n).