cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A053673 Least number > 1 coprime to n, n+1, n+2, n+3 and n+4.

Original entry on oeis.org

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
Offset: 1

Views

Author

Henry Bottomley, Feb 15 2000

Keywords

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)

Crossrefs

Programs

  • 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
  • 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 *)

Extensions

More terms from Andrew Gacek (andrew(AT)dgi.net), Feb 21 2000 and James Sellers, Feb 22 2000