login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A187636
Primes of the form n^n-n!-n-1 (for n>=3).
0
17, 227, 2999, 16736887, 8915621446643, 302868879571439, 12089258196146290931146476752102265654388730403884105727999999959, 500702078263459319162123109657034815575847666330026847982736254730143917152403407
OFFSET
1,1
COMMENTS
The 9th term of the sequence is 121 digits long and the 10th term has 146 digits.
EXAMPLE
For n=3, p:=27-6-3-1=17 is prime.
MATHEMATICA
Do[p=n^n-n!-n-1; If[PrimeQ[p], Print[p]], {n, 200}]
Select[Table[n^n-n!-n-1, {n, 3, 90}], PrimeQ] (* Harvey P. Dale, Apr 06 2018 *)
CROSSREFS
Sequence in context: A087608 A078946 A164600 * A152588 A152589 A163853
KEYWORD
nonn
AUTHOR
Marco Ripà, Mar 12 2011
STATUS
approved