Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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!)
A245528 Primes of the form n! - (n + 1)! + (n + 2)! - 1. 1
19, 101, 35999, 327599, 3306239, 81430271999, 24779106953279078399999, 10501089199335077511167999999, 1372369506422963989169318155460666934165503999999999, 117024364553755119629556890816711613171571359743999999999 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The term a(11) has 129 digits which is too large to show in data section.
a(15) has 1081 digits, hence not included in b-file.
The first 20 primes are for n = 2, 3, 6, 7, 8, 12, 21, 25, 40, 43, 83, 107, 132, 139, 478, 505, 931, 1516, 1739, 5208. - Jens Kruse Andersen, Aug 10 2014
LINKS
EXAMPLE
m = 2: m! - (m + 1)! + (m + 2)! - 1 = 19 which is prime, hence appears in the sequence.
m = 6: m! - (m + 1)! + (m + 2)! - 1 = 35999 which is prime, hence appears in the sequence.
MATHEMATICA
Select[Table[n! - (n + 1)! + (n + 2)! - 1, {n, 200}], PrimeQ[#] &]
PROG
(PARI)
for(n=1, 200, s=n!-(n+1)!+(n+2)!-1; if(ispseudoprime(s), print1(s, ", "))) \\ Derek Orr, Aug 10 2014
(Magma) [a: n in [0..100] | IsPrime(a) where a is Factorial(n) - Factorial(n + 1) + Factorial(n + 2) - 1 ]; // Vincenzo Librandi, Aug 11 2014
CROSSREFS
Sequence in context: A027005 A061696 A062643 * A253218 A300774 A054658
KEYWORD
nonn,easy,less
AUTHOR
K. D. Bajpai, Jul 25 2014
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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 18 11:16 EDT 2024. Contains 375265 sequences. (Running on oeis4.)