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!)
A045881 Smallest of first string of exactly 2n-1 consecutive composite integers. 8

%I #20 Oct 28 2021 12:37:08

%S 4,8,24,90,140,200,114,1832,524,888,1130,1670,2478,2972,4298,5592,

%T 1328,9552,30594,19334,16142,15684,81464,28230,31908,19610,35618,

%U 82074,44294,43332,34062,89690,162144,134514,173360,31398,404598,212702,188030,542604

%N Smallest of first string of exactly 2n-1 consecutive composite integers.

%H Donovan Johnson, <a href="/A045881/b045881.txt">Table of n, a(n) for n = 1..672</a> (from Nicely link)

%H Thomas R. Nicely, <a href="https://faculty.lynchburg.edu/~nicely/gaps/gaplist.html">First occurrence prime gaps</a> [For local copy see A000101]

%t Reap[For[k=2, k <= 80, k = k+2, p=3; q=5; While[q-p != k, p=q; q=NextPrime[p+1]]; Print[p+1]; Sow[p+1]]][[2, 1]] (* _Jean-François Alcover_, May 17 2013, after _Klaus Brockhaus_ *)

%t With[{cmps=Table[If[CompositeQ[n],1,0],{n,10^6}]},Flatten[Table[ SequencePosition[ cmps,Join[{0},PadRight[{},i,1],{0}],1],{i,1,81,2}],1][[All,1]]+1] (* Requires Mathematica version 10 or later *) (* _Harvey P. Dale_, May 02 2017 *)

%o (PARI) forstep(k=2,80,2,p=3;q=5;while(q-p!=k,p=q;q=nextprime(p+1));print1(p+1,",")) \\ _Klaus Brockhaus_, Jan 24 2008

%Y Equals A000230(n) + 1.

%K nonn,nice

%O 1,1

%A _Erich Friedman_

%E More terms from _Harvey P. Dale_, Jul 27 2001

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 25 05:18 EDT 2024. Contains 371964 sequences. (Running on oeis4.)