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!)
A173144 Numbers n such that neither prime(n-1) nor prime(n+1) is of form 6k+1. 1
2, 4, 6, 8, 14, 16, 25, 27, 29, 31, 34, 40, 42, 44, 50, 53, 55, 56, 61, 63, 65, 70, 78, 80, 82, 88, 90, 93, 95, 97, 103, 108, 117, 119, 125, 127, 136, 138, 141, 143, 145, 147, 149, 151, 153, 155, 157, 159, 161, 163, 165, 172, 177, 183, 185, 191, 193, 195, 200, 207 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
A000040(a(n))=A171817(m).
EXAMPLE
a(1)=2 because prime(2-1)=2 and prime(2+1)=5 are not of form 6k+1.
MATHEMATICA
f6kQ[n_]:=And@@(!IntegerQ[(#-1)/6]&/@{Prime[n-1], Prime[n+1]}); Select[ Range[2, 300], f6kQ] (* Harvey P. Dale, Feb 29 2012 *)
CROSSREFS
Sequence in context: A089747 A274170 A367745 * A356702 A005250 A162762
KEYWORD
nonn,easy,less
AUTHOR
EXTENSIONS
1 removed by Charles R Greathouse IV, Mar 25 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 March 19 07:04 EDT 2024. Contains 370953 sequences. (Running on oeis4.)