login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A053671 Least number coprime to n, n+1 and n+2. 2
5, 5, 7, 7, 11, 5, 5, 7, 7, 7, 5, 5, 11, 11, 7, 5, 5, 7, 11, 13, 5, 5, 7, 7, 7, 5, 5, 11, 7, 7, 5, 5, 13, 11, 11, 5, 5, 7, 7, 11, 5, 5, 7, 7, 7, 5, 5, 11, 11, 7, 5, 5, 7, 13, 13, 5, 5, 7, 7, 7, 5, 5, 11, 7, 7, 5, 5, 11, 11, 11, 5, 5, 7, 7, 13, 5, 5, 7, 7, 7, 5, 5, 11, 11, 7, 5, 5, 7, 11, 11, 5, 5 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 1..10000

MATHEMATICA

a[n_] := (k = 5; While[! (CoprimeQ[k, n] && CoprimeQ[k, n+1] && CoprimeQ[k, n+2]), k++]; k); Table[a[n], {n, 1, 92}] (* From Jean-François Alcover, Nov 30 2011 *)

PROG

(Haskell)

a053671 n = f $ drop 2 a000040_list where

   f (p:ps) | (n `mod` p) * ((n+1) `mod` p) * ((n+2) `mod` p) > 0 = p

            | otherwise = f ps

-- Reinhard Zumkeller, Mar 19 2011

CROSSREFS

Cf. A053669-A053674.

Sequence in context: A133888 A111186 A127798 * A028278 A095943 A120220

Adjacent sequences:  A053668 A053669 A053670 * A053672 A053673 A053674

KEYWORD

nonn,easy,nice

AUTHOR

Henry Bottomley (se16(AT)btinternet.com), Feb 15 2000

EXTENSIONS

More terms from James A. Sellers (sellersj(AT)math.psu.edu), Feb 22 2000

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 16:00 EST 2012. Contains 206050 sequences.