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!)
A173136 Odd nonprimes n such that exactly one of 2n-1 and 2n+1 is prime. 1
1, 27, 33, 35, 39, 45, 49, 55, 57, 63, 65, 81, 87, 91, 95, 105, 111, 115, 117, 119, 121, 125, 129, 147, 153, 155, 159, 165, 169, 175, 177, 183, 187, 189, 195, 201, 205, 209, 215, 217, 219, 221, 225, 243, 245, 249, 255, 273, 279, 289, 297, 299, 301, 303, 315 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
a(1)=1 because 2*1-1=1 is nonprime and 2*1+1=3 is prime.
MATHEMATICA
Select[Range[1, 341, 2], !PrimeQ[#]&&Total[Boole[PrimeQ[2 #+{1, -1}]]]==1&] (* Harvey P. Dale, Sep 01 2017 *)
CROSSREFS
Sequence in context: A198147 A144862 A117934 * A030134 A290842 A024796
KEYWORD
nonn,easy,less
AUTHOR
EXTENSIONS
Corrected at 3 or more places by R. J. Mathar, Mar 09 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 04:31 EDT 2024. Contains 371767 sequences. (Running on oeis4.)