login
This site is supported by donations to The OEIS Foundation.

 

Logo

Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing.
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A267897 a(n) = prime(n)! - prime(n). 0
0, 3, 115, 5033, 39916789, 6227020787, 355687428095983, 121645100408831981, 25852016738884976639977, 8841761993739701954543615999971, 8222838654177922817725562879999969, 13763753091226345046315979581580902399999963 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Table of n, a(n) for n=1..12.

FORMULA

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

a(n) = A005096(A000040(n)).

MATHEMATICA

Array[Prime[#]! - Prime[#] &, 20]

PROG

(MAGMA) [Factorial(p)-p: p in PrimesUpTo(40)];

(PARI) lista(nn) = forprime(p=2, nn, print1(p! - p, ", ")); \\ Altug Alkan, Jan 23 2016

CROSSREFS

Cf. A000040, A005096, A039716, A114574.

Sequence in context: A225334 A240441 A229929 * A132304 A097642 A009095

Adjacent sequences:  A267894 A267895 A267896 * A267898 A267899 A267900

KEYWORD

nonn,easy

AUTHOR

Vincenzo Librandi, Jan 22 2016

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 12 22:06 EST 2019. Contains 329963 sequences. (Running on oeis4.)