The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A085417 Take prime[n] and continue adding n,n+1,..., n+a(n)-1 until one reaches a prime. 4
 1, 1, 3, 1, 3, 1, 3, 9, 3, 5, 3, 5, 3, 12, 4, 9, 3, 1, 3, 4, 3, 1, 4, 1, 7, 1, 7, 5, 3, 4, 3, 1, 3, 1, 3, 8, 3, 9, 7, 5, 4, 1, 8, 12, 4, 4, 15, 1, 8, 21, 3, 5, 24, 9, 12, 8, 3, 4, 3, 9, 11, 4, 3, 5, 48, 1, 7, 33, 3, 1, 3, 1, 15, 12, 3, 5, 8, 5, 3, 36, 19, 1, 3, 5, 11, 5, 12, 5, 4, 4, 3, 1, 3, 5, 3, 1, 15, 1 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,3 COMMENTS Primes obtained are in A085418. See also A085415, A085416. No terms == 2 (mod 4). - Robert Israel, Mar 24 2023 LINKS Robert Israel, Table of n, a(n) for n = 1..10000 EXAMPLE a(3)=3 because prime[3]=5 and 5+(3+4+5)=17= is a prime A085418(3). MAPLE f:= proc(n) local m, k, x; m:= ithprime(n) - (n-1)*n/2; for k from n do x:= k*(k+1)/2 + m; if isprime(x) then return k+1-n fi od; end proc: map(f, [\$1..100]); # Robert Israel, Mar 24 2023 CROSSREFS Cf. A085415, A085416, A085418. Sequence in context: A370719 A057024 A023892 * A201662 A274473 A280526 Adjacent sequences: A085414 A085415 A085416 * A085418 A085419 A085420 KEYWORD easy,nonn AUTHOR Zak Seidov, Jun 30 2003 STATUS approved

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

Last modified April 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)