The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 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 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 LINKS Robert Israel, Table of n, a(n) for n = 1..10000 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 Cf. A000034, A340339. Sequence in context: A191304 A102444 A132177 * A046138 A296322 A097279 Adjacent sequences:  A340337 A340338 A340339 * A340341 A340342 A340343 KEYWORD nonn AUTHOR J. M. Bergot and Robert Israel, Jan 04 2021 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified May 16 08:07 EDT 2021. Contains 343940 sequences. (Running on oeis4.)