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.

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

This page as a plain text file.
%I A261457 #20 Sep 08 2022 08:46:13
%S A261457 1,4,114,5016,39916680,6227020080,355687428090960,121645100408791680,
%T A261457 25852016738884976277120,8841761993739701954543612371200,
%U A261457 8222838654177922817725562840083200,13763753091226345046315979581580901920998400
%N A261457 a(n) = prime(n)! - n!.
%F A261457 a(n) = prime(n)! - n! = A039716(n) - A000142(n).
%e A261457 The 3rd prime is 5, a(3)= 5! - 3! = 114.
%t A261457 Array[Prime[#]! - #! &, {12}] (* _Michael De Vlieger_, Aug 19 2015 *)
%o A261457 (Magma) [Factorial(NthPrime(n)) - Factorial(n): n in [1..15]]; // _Vincenzo Librandi_, Aug 20 2015
%o A261457 (PARI) first(m)=vector(m,i,prime(i)!-i!) \\ _Anders Hellström_, Aug 20 2015
%Y A261457 Cf. A000142, A014689, A039716.
%K A261457 nonn,easy
%O A261457 1,2
%A A261457 _Altug Alkan_, Aug 19 2015