A087146 Numbers k such that k! + (k+1)! - 1 is prime.
1, 2, 3, 5, 9, 13, 14, 17, 27, 28, 33, 39, 103, 115, 205, 291, 1431, 1532, 1710, 1937, 3901, 3981, 4682, 6569, 20266, 20662
Offset: 1
Keywords
Examples
3 is in the sequence because 3!+4!-1=29 is prime.
References
- H. Dubner, Factorial and primorial primes, J. Rec. Math., 19(No. 3, 1987)
Programs
-
Mathematica
v={}; Do[If[PrimeQ[n!+(n+1)!-1], v=Append[v, n]; Print[v]], {n, 1800}]; v
Extensions
One more term from Ryan Propper, Aug 13 2005
a(21)-a(26) from Robert Price, Jul 12 2015
Comments