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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A343196 a(n) is the least positive number k such that Sum_{k<=j<=k+n-1} A001414(j) is prime. 2
2, 1, 1, 3, 2, 1, 5, 3, 5, 3, 9, 3, 5, 4, 2, 1, 4, 8, 5, 13, 9, 6, 4, 6, 3, 15, 3, 2, 1, 1, 8, 22, 2, 1, 1, 1, 3, 2, 1, 9, 5, 9, 5, 3, 6, 3, 3, 5, 8, 5, 6, 31, 11, 9, 4, 2, 1, 2, 1, 3, 5, 4, 9, 9, 5, 5, 8, 9, 7, 3, 5, 3, 6, 10, 2, 1, 1, 3, 3, 6, 7, 10, 44, 17, 51, 4, 2, 1, 3, 8, 12, 16, 2, 1, 8 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(n) is the first k such that the sum of primes, with repetition, dividing (k+n-1)!/(k-1)! is prime.
LINKS
EXAMPLE
a(4) = 3 because A001414(3) + A001414(4) + A001414(5) + A001414(6) = 17 is prime.
MAPLE
sopf:= proc(n) option remember; local t; add(t[1]*t[2], t=ifactors(n)[2]) end proc:
f:= proc(n) local j, t, i;
t:= add(sopf(i), i=1..n);
for j from 1 do
if isprime(t) then return j fi;
t:= t + sopf(j+n)-sopf(j)
od
end proc:
map(f, [$1..100]);
CROSSREFS
Sequence in context: A049998 A029253 A288165 * A016441 A340581 A345116
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Apr 07 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 06:24 EDT 2024. Contains 371918 sequences. (Running on oeis4.)