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

 

Logo

Annual Appeal: Please make a donation (tax deductible in USA) to keep the OEIS running. Over 5000 articles have referenced us, often saying "we discovered this result with the help of the OEIS".

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A168079 Numbers n such that exactly one of n+-1, n+-2 and n+-3 is prime. 1
-1, 7, 11, 13, 17, 19, 24, 25, 27, 29, 31, 33, 35, 36, 41, 43, 48, 49, 51, 52, 54, 55, 57, 59, 61, 63, 65, 66, 71, 73, 75, 77, 78, 84, 85, 87, 88, 90, 91, 92, 94, 95, 96, 101, 103, 107, 109, 114, 115, 116, 124, 125, 126, 132, 133, 135, 137, 139, 141, 142, 146, 147, 149 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

G. C. Greubel, Table of n, a(n) for n = 1..1000

FORMULA

a(n) ~ 6n/log n. -Charles R Greathouse IV, May 25, 2011

EXAMPLE

a(1)=-1 (-4,-3,-2,0 and 1 are nonprimes, 2 is prime);

a(2)=7 (4,6,8,9 and 10 are nonprimes, 5 is prime);

a(3)=13 (8,9,10,12 and 14 are nonprimes, 11 is prime).

MATHEMATICA

f[n_] := Length[Select[Drop[Range[n - 3, n + 3], {4}], PrimeQ]] == 1; Join[{-1}, Select[Range[0, 200], f]] (* G. C. Greubel, Jul 09 2016 *)

CROSSREFS

Cf. A000040, A100317, A141468.

Sequence in context: A038961 A127903 A271000 * A243768 A141636 A214786

Adjacent sequences:  A168076 A168077 A168078 * A168080 A168081 A168082

KEYWORD

sign

AUTHOR

Juri-Stepan Gerasimov, Nov 18 2009

EXTENSIONS

Corrected (11, 57 inserted, 16 replaced by 126) by R. J. Mathar, Jun 04 2010

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy .

Last modified December 7 03:36 EST 2016. Contains 278838 sequences.