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!)
A238378 Numbers k such that (k+1)^(k-1) + k is prime. 2
1, 2, 3, 5, 7, 8, 158, 536, 4670, 9795 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Next term is >= 30000.
LINKS
EXAMPLE
3 is in the sequence since (3+1)^(3-1) + 3 = 4^2 + 3 = 19 is prime.
MATHEMATICA
Select[Range[600], PrimeQ[(#+1)^(#-1)+#]&] (* The program generates the first eight terms of the sequence. *) (* Harvey P. Dale, Feb 07 2024 *)
PROG
(PARI) is(n)=isprime((n+1)^(n-1)+n) \\ Charles R Greathouse IV, Jun 06 2017
CROSSREFS
Cf. A187602 (corresponding primes).
Sequence in context: A350707 A285282 A105404 * A075012 A067090 A284173
KEYWORD
nonn,hard,more
AUTHOR
Matevz Markovic, Feb 25 2014
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 September 17 11:15 EDT 2024. Contains 375987 sequences. (Running on oeis4.)