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!)
A053674 Least number coprime to n, n+1, n+2, n+3, n+4 and n+5. 13
7, 11, 11, 11, 11, 13, 13, 7, 17, 17, 17, 11, 11, 11, 7, 11, 13, 13, 13, 13, 17, 7, 11, 11, 11, 11, 11, 13, 7, 13, 13, 13, 13, 11, 11, 7, 11, 11, 17, 13, 13, 13, 7, 13, 11, 11, 11, 11, 11, 7, 19, 17, 13, 13, 13, 11, 7, 11, 11, 11, 17, 17, 19, 7, 19, 13, 11, 11, 11, 11, 7, 13 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
All terms are primes greater than 5. Records: a(1) = 7, a(2) = 11, a(6) = 13, a(9) = 17, a(51) = 19, a(151) = 23, a(437) = 29, a(779) = 31, a(1766) = 37, a(60605) = 41, a(324596) = 43, a(3555107) = 47, a(14511250) = 53, a(65209022) = 59, a(764050703) = 61, .... - Charles R Greathouse IV, Feb 07 2017
LINKS
MATHEMATICA
a[n_] := (k = 7; While[ ! And @@ (CoprimeQ[k, #] & ) /@ Range[n, n+5], k++]; k); Table[a[n], {n, 1, 72}] (* Jean-François Alcover, Nov 30 2011 *)
cpr[n_]:=Module[{k=7}, While[Union[Boole[CoprimeQ[k, n+Range[0, 5]]]]!={1}, k = NextPrime[ k]]; k](* Harvey P. Dale, May 12 2022 *)
PROG
(Haskell)
import Data.List (elemIndex)
import Data.Maybe (fromJust)
a053674 n = 2 + fromJust
(elemIndex 1 $ map (gcd $ foldl1 lcm $ take 6 [n..]) [2..])
-- Reinhard Zumkeller, Sep 25 2011
(PARI) a(n)=my(L=lcm([n..n+5])); forprime(p=7, , if(L%p, return(p))) \\ Charles R Greathouse IV, Feb 07 2017
CROSSREFS
Sequence in context: A071631 A054510 A134702 * A205679 A166980 A184071
KEYWORD
nonn,easy,nice
AUTHOR
Henry Bottomley, Feb 15 2000
EXTENSIONS
More terms from Andrew Gacek (andrew(AT)dgi.net), Feb 21 2000 and James A. Sellers, Feb 22 2000
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 March 28 11:46 EDT 2024. Contains 371241 sequences. (Running on oeis4.)