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”).

A093574
Smallest prime of the form n^j+(n+1)^k, with j,k integer > 0.
3
3, 5, 7, 29, 11, 13, 71, 17, 19, 131, 23, 157, 2393, 29, 31, 83537, 307, 37, 419, 41, 43, 1013, 47, 601, 701, 53, 757, 615497, 59, 61, 1049537, 2113, 67, 1259, 71, 73, 1481, 1483, 79, 1721, 83, 3613, 1979, 89, 2161, 4977017, 2351, 97, 2549, 101, 103, 2861
OFFSET
1,1
COMMENTS
Proposed by Leroy Quet, Mar 29 2004. Extended by R. K. Guy and Hugo Pfoertner.
Every odd prime occurs at least once at positions given by A005097.
LINKS
EXAMPLE
a(4)=29 because 4^1+5^2=29 is prime, whereas 4^1+5^1=9, 4^2+5=21 are composite.
MAPLE
f:= proc(n) local t, pq;
uses priqueue;
initialize(pq);
insert([-2*n-1, 1, 1], pq);
do
t:= extract(pq);
if isprime(-t[1]) then return -t[1] fi;
insert([-n^(t[2]+1)-(n+1)^t[3], t[2]+1, t[3]], pq);
insert([-n^t[2]-(n+1)^(t[3]+1), t[2], t[3]+1], pq);
od;
end proc:
map(f, [$1..60]); # Robert Israel, May 17 2024
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Hugo Pfoertner, Apr 01 2004
STATUS
approved