login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A134985
Numbers k such that (k-1)^(k+1) - k^k is prime.
1
5, 6, 7, 13, 17, 171, 174, 378, 17641
OFFSET
1,1
COMMENTS
No more terms up to 10000. - Rick L. Shepherd, May 16 2008
EXAMPLE
12^14 - 13^13 = 981043357956611, which is prime, so 13 is in the list.
MATHEMATICA
Select[Table[n, {n, 5, 400}], PrimeQ[(#-1)^(#+1)-#^#]&] (* Vladimir Joseph Stephan Orlovsky, Mar 03 2011*)
CROSSREFS
Sequence in context: A273929 A067531 A031029 * A371029 A111018 A326132
KEYWORD
hard,more,nonn
AUTHOR
Carl R. White, Feb 05 2008
EXTENSIONS
a(9) from Michael S. Branicky, Sep 05 2024
STATUS
approved