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

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A261457 a(n) = prime(n)! - n!. 1
 1, 4, 114, 5016, 39916680, 6227020080, 355687428090960, 121645100408791680, 25852016738884976277120, 8841761993739701954543612371200, 8222838654177922817725562840083200, 13763753091226345046315979581580901920998400 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 LINKS Table of n, a(n) for n=1..12. FORMULA a(n) = prime(n)! - n! = A039716(n) - A000142(n). EXAMPLE The 3rd prime is 5, a(3)= 5! - 3! = 114. MATHEMATICA Array[Prime[#]! - #! &, {12}] (* Michael De Vlieger, Aug 19 2015 *) PROG (Magma) [Factorial(NthPrime(n)) - Factorial(n): n in [1..15]]; // Vincenzo Librandi, Aug 20 2015 (PARI) first(m)=vector(m, i, prime(i)!-i!) \\ Anders Hellström, Aug 20 2015 CROSSREFS Cf. A000142, A014689, A039716. Sequence in context: A260575 A275747 A239942 * A080482 A340277 A206689 Adjacent sequences: A261454 A261455 A261456 * A261458 A261459 A261460 KEYWORD nonn,easy AUTHOR Altug Alkan, Aug 19 2015 STATUS approved

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.

Last modified September 30 03:10 EDT 2023. Contains 365781 sequences. (Running on oeis4.)