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!)
A077129 Smallest number which is relatively prime to all the numbers between successive odd primes. 2
3, 5, 7, 5, 11, 5, 13, 11, 7, 13, 7, 5, 7, 11, 13, 7, 17, 11, 5, 17, 7, 13, 11, 13, 5, 11, 5, 13, 37, 7, 13, 5, 17, 7, 23, 11, 7, 11, 13, 7, 29, 5, 11, 5, 31, 19, 11, 5, 13, 11, 7, 17, 13, 11, 13, 7, 19, 11, 5, 23, 29, 13, 5, 11, 31, 11, 29, 5, 17, 11, 17, 11, 19, 7, 13, 19, 11 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
Naturally every member is a prime.
LINKS
EXAMPLE
a(5)= 11,is the smallest number coprime to all the numbers from 13 to 17 i.e. 14,15 and 16.
MATHEMATICA
sncp[n_]:=Module[{cr=Range[Prime[n]+1, Prime[n+1]-1], k=3}, While[Total[Boole[CoprimeQ[ cr, k]]]!= Length[cr], k=NextPrime[k]]; k]; Array[sncp, 80, 2] (* Harvey P. Dale, Apr 06 2023 *)
PROG
(PARI) for(n=2, 100, for(i=2, 10^9, f=0:for(k=prime(n)+1, nextprime(prime(n)+1)-1, if(gcd(i, k)>1, f=1:break)): if(!f, print1(i", "):break)))
CROSSREFS
Sequence in context: A222579 A141574 A141261 * A073409 A260234 A151548
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Oct 29 2002
EXTENSIONS
More terms from Ralf Stephan, Mar 27 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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 17 01:14 EDT 2024. Contains 375198 sequences. (Running on oeis4.)