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!)
A054462 Numbers n such that (n+1)^n + n^(n-1) is prime. 0
1, 2, 3, 8, 9, 15, 16, 219 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
Select[Range[1000], PrimeQ[(# + 1)^# + #^(# - 1)] &] (* Vincenzo Librandi Sep 27 2012 *)
PROG
(PARI) xp1toxp1(n)= { sr=0; forstep(x=2, n, 1, y=(x+1)^x + x^(x-1); if(ispseudoprime(y), print(x" "y" "); sr+= 1.0/y; ) ); print(); print(sr) }
CROSSREFS
Sequence in context: A309423 A029787 A246396 * A101471 A137471 A051209
KEYWORD
nonn
AUTHOR
Cino Hilliard, Aug 30 2003
EXTENSIONS
Inserted a(1)=1 by Vincenzo Librandi, Sep 27 2012
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 March 28 09:04 EDT 2024. Contains 371240 sequences. (Running on oeis4.)