login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


A261809
a(n) = n! - prime(n).
2
-1, -1, 1, 17, 109, 707, 5023, 40301, 362857, 3628771, 39916769, 479001563, 6227020759, 87178291157, 1307674367953, 20922789887947, 355687428095941, 6402373705727939, 121645100408831933, 2432902008176639929, 51090942171709439927, 1124000727777607679921
OFFSET
1,4
LINKS
FORMULA
a(n) = A000142(n) - A000040(n).
EXAMPLE
For n=4, a(4) = 4! - prime(4) = 24 - 7 = 17.
MATHEMATICA
Table[n! - Prime[n], {n, 1, 150}] (* G. C. Greubel, Sep 01 2015 *)
PROG
(PARI) vector(50, n, n!-prime(n))
(Magma) [Factorial(n)-NthPrime(n): n in [1..30]]; // Vincenzo Librandi, Sep 02 2015
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Altug Alkan, Sep 01 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 22 08:59 EDT 2024. Contains 376097 sequences. (Running on oeis4.)