OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(4) = 4*A340339(4)+1 = 53.
MAPLE
f:= proc(n, p0)
local p, a, v;
if n::odd then a:= 2 else a:= 1 fi;
p:= p0;
do p:= nextprime(p)
until isprime(n*p+a);
return (p, n*p+a)
end proc:
p:= 2: R:= NULL:
for n from 1 to 100 do
p, v:= f(n, p);
R:= R, v;
od:
R;
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Jan 04 2021
STATUS
approved