login

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 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A300477
Number of positive integers k with 1 < k < n such that n^k + k^n is prime.
2
0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0
OFFSET
2
COMMENTS
a(n) > 0 iff n is a term of A162488.
a(n) > 1 iff n is a term of A300478.
LINKS
MAPLE
f:= n -> nops(select(isprime, [seq(n^k-k^n, k=2..n-1)])):
map(f, [$2..100]); # Robert Israel, Sep 24 2020
PROG
(PARI) a(n) = my(i=0); for(k=2, n-1, if(ispseudoprime(n^k+k^n), i++)); i
CROSSREFS
Sequence in context: A373260 A162518 A330306 * A355202 A353556 A228495
KEYWORD
nonn
AUTHOR
Felix Fröhlich, Mar 06 2018
STATUS
approved