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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A267897 a(n) = prime(n)! - prime(n). 0

%I #16 Sep 08 2022 08:46:15

%S 0,3,115,5033,39916789,6227020787,355687428095983,121645100408831981,

%T 25852016738884976639977,8841761993739701954543615999971,

%U 8222838654177922817725562879999969,13763753091226345046315979581580902399999963

%N a(n) = prime(n)! - prime(n).

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

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

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

%o (Magma) [Factorial(p)-p: p in PrimesUpTo(40)];

%o (PARI) lista(nn) = forprime(p=2, nn, print1(p! - p, ", ")); \\ _Altug Alkan_, Jan 23 2016

%Y Cf. A000040, A005096, A039716, A114574.

%K nonn,easy

%O 1,2

%A _Vincenzo Librandi_, Jan 22 2016

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | 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 April 19 14:10 EDT 2024. Contains 371792 sequences. (Running on oeis4.)