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

 

Logo

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 59th year, we have over 358,000 sequences, and we’ve crossed 10,300 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A140970 Primes of the form (n-1)! + n^(n-1). 0
2, 3, 11, 118369 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..4.

MATHEMATICA

Select[Table[(n-1)!+n^(n-1), {n, 20}], PrimeQ] (* Harvey P. Dale, Oct 05 2016 *)

PROG

(PARI) j=[]; for(n=1, 100, if(isprime((n^n+n!)/n), j=concat(j, ((n-1)! + n^(n-1))))); j

CROSSREFS

Sequence in context: A096456 A262201 A072928 * A058523 A103782 A128438

Adjacent sequences:  A140967 A140968 A140969 * A140971 A140972 A140973

KEYWORD

nonn,less,more

AUTHOR

Alexander R. Povolotsky, Aug 17 2008

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 November 26 13:05 EST 2022. Contains 358362 sequences. (Running on oeis4.)