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!)
A053673 Least number > 1 coprime to n, n+1, n+2, n+3 and n+4. 8
7, 7, 11, 11, 11, 11, 13, 7, 7, 17, 17, 11, 11, 11, 7, 7, 11, 13, 13, 13, 13, 7, 7, 11, 11, 11, 11, 11, 7, 7, 13, 13, 13, 11, 11, 7, 7, 11, 11, 13, 13, 13, 7, 7, 11, 11, 11, 11, 11, 7, 7, 17, 13, 13, 13, 11, 7, 7, 11, 11, 11, 17, 17, 7, 7, 13, 11, 11, 11, 11, 7, 7, 13, 17, 17, 17, 17 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
From Robert Israel, Jul 06 2016: (Start)
Least prime that does not divide n(n+1)(n+2)(n+3)(n+4).
All terms are primes >= 7.
First occurrences of the first few values:
a(1) = 7, a(3) = 11, a(7) = 13, a(10) = 17, a(117) = 19, a(152) = 23, a(1309) = 29, a(986) = 31, a(1767) = 37, a(203201) = 41, a(868868) = 43
(End)
LINKS
MAPLE
f:= proc(n) local p;
p:= 7;
while min([n, n+1, n+2, n+3, n+4] mod p) = 0 do p:= nextprime(p) od:
p
end proc:
seq(f(n), n=1..100); # Robert Israel, Jul 06 2016
MATHEMATICA
Table[k=2; While[First[Union[CoprimeQ[k, #]&/@(n+Range[0, 4])]]== False, k++]; k, {n, 80}] (* Harvey P. Dale, Jul 07 2011 *)
PROG
(Haskell)
import Data.List (elemIndex)
import Data.Maybe (fromJust)
a053673 n = 2 + fromJust
(elemIndex 1 $ map (gcd $ foldl1 lcm $ take 5 [n..]) [2..])
-- Reinhard Zumkeller, Sep 25 2011
CROSSREFS
Sequence in context: A084523 A336019 A213886 * A204910 A152672 A003883
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 April 18 11:52 EDT 2024. Contains 371779 sequences. (Running on oeis4.)