login
A340340
a(n) = n*A340339(n)+b, where b = 1 if n is even or 2 if n is odd.
2
5, 11, 23, 53, 97, 139, 331, 569, 659, 971, 1201, 1669, 2251, 3347, 3617, 4337, 4813, 5527, 6709, 8861, 9431, 10979, 12583, 13513, 14827, 16823, 18443, 19853, 21433, 22291, 23593, 25889, 27689, 29207, 30697, 32653, 34819, 36899, 38651, 40361, 41863, 44059, 47431, 53549, 55667, 59387, 60961, 63313
OFFSET
1,1
LINKS
FORMULA
a(n) = n*A340339(n)+A000034(n).
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
Sequence in context: A191304 A102444 A132177 * A046138 A296322 A097279
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Jan 04 2021
STATUS
approved