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!)
A185154 Smallest prime p such that a nonconsecutive prime q exists with A157996(n) = p + q + 1. 2
3, 3, 5, 3, 5, 7, 5, 3, 5, 3, 5, 5, 7, 5, 3, 5, 5, 3, 5, 7, 3, 5, 3, 5, 3, 13, 3, 5, 7, 11, 11, 5, 5, 3, 5, 5, 7, 11, 11, 3, 5, 11, 11, 3, 5, 3, 5, 7, 11, 5, 5, 5, 7, 5, 3, 5, 11, 13, 3, 5, 3, 13, 5, 29, 11, 3, 5, 7, 5, 5, 3, 5, 7, 3, 7, 17, 11, 11, 11, 5, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
A010051(A157996(n) - a(n) - 1) = 1.
LINKS
PROG
(Haskell)
import Data.Maybe (catMaybes)
a185154 n = a185154_list !! (n-1)
a185154_list = catMaybes $ map f a006093_list where
f x = g $ takeWhile (< x) a065091_list where
g [] = Nothing
g [_] = Nothing
g (p:ps@(_:qs)) | (x - p) `elem` qs = Just p
| otherwise = g ps
CROSSREFS
Sequence in context: A158894 A352445 A131919 * A204022 A131832 A255316
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Mar 12 2012
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 23 12:58 EDT 2024. Contains 371913 sequences. (Running on oeis4.)