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!)
A373618 Least prime starting a run of n consecutive primes p_i, i=1..n, such that p_i + 1 is squarefree and p_(n+1) + 1 is not squarefree. 1
2, 37, 397, 389, 11617, 11597, 11593, 2048509, 2772409, 5193997, 33933701, 125624813, 125624809, 432787781, 432787777, 4762221193, 4762221181, 182839149373, 547414016069, 551900822513 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(1) = 2, because 2 is the least prime starting a run of 1 prime such that 2+1 is squarefree and 3+1 = 4 = 2^2 is not squarefree.
For n=4 the first run of 4 squarefree p+1 starts at a(4) = 389, and no run of n=3 so a(3) = 397 is the ending 3 of this run.
p = 389, 397, 401, 409, 419
p+1 squarefree = yes yes yes yes no
n=4 run \----------------/
n=3 run \-----------/
MATHEMATICA
a[n_]:=Module[{k=1}, While[pr=Product[Boole[SquareFreeQ[Prime[k+i-1]+1]], {i, n}]==0||pr&& Boole[SquareFreeQ[Prime[k+n]+1]]==1, k++]; Prime[k]]; Array[a, 8] (* Stefano Spezia, Jun 11 2024 *)
CROSSREFS
Sequence in context: A243101 A001569 A375261 * A092853 A297796 A300542
KEYWORD
nonn,more
AUTHOR
Jean-Marc Rebert, Jun 11 2024
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 August 12 07:33 EDT 2024. Contains 375085 sequences. (Running on oeis4.)