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!)
A191717 Numbers n such that n*(n-1)^n-(n-1)*n^(n-1)+1 is prime. 1
3, 5, 18, 23, 78, 131, 177 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(1)=3 because 3*2^3-2*3^2+1=7 is prime, a(2)=5 because 5*4^5-4*5^4+1=2621 is prime.
PROG
(PARI) is(n)=ispseudoprime(n*(n-1)^n-(n-1)*n^(n-1)+1) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
Sequence in context: A249759 A358342 A039584 * A136131 A143546 A069066
KEYWORD
nonn,hard
AUTHOR
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 April 23 05:37 EDT 2024. Contains 371906 sequences. (Running on oeis4.)