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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A114233 n(k) is the minimum number n that makes 2*Prime[k]+Prime[n] a prime, which matches n<k. 4
2, 2, 4, 2, 2, 2, 4, 2, 3, 3, 4, 2, 2, 2, 6, 3, 2, 4, 2, 3, 4, 2, 2, 11, 3, 6, 3, 2, 2, 4, 2, 2, 6, 3, 2, 3, 2, 2, 11, 3, 4, 2, 2, 2, 5, 2, 2, 2, 6, 6, 3, 4, 4, 11, 2, 3, 2, 4, 2, 4, 2, 8, 3, 4, 5, 2, 4, 2, 2, 14, 3, 3, 2, 2, 8, 2, 4, 2, 8, 5, 8, 5, 2, 14, 6, 3, 4, 2, 2, 6, 2, 11, 5, 2, 2, 4, 2, 3, 2, 2, 2, 6, 5 (list; graph; refs; listen; history; internal format)
OFFSET

3,1

EXAMPLE

k=3: 2*Prime[3]+Prime[2]=2*5+3=13 is prime, so n(3)=2;

k=4: 2*Prime[4]+Prime[2]=2*7+3=17 is prime, so n(4)=2;

k=5: 2*Prime[5]+Prime[2]=2*11+3=25 is not prime

...

2*Prime[5]+Prime[4]=2*11+7=29 is prime, so n(5)=4;

MATHEMATICA

Table[p1 = Prime[n1]; n2 = 1; p2 = Prime[n2]; While[cp = 2*p1 + p2; ! PrimeQ[cp], n2++; If[n2 >= n1, Print[n1]]; p2 = Prime[n2]]; n2, { n1, 3, 202}]

CROSSREFS

Cf. A073703, A114227, A114228, A114231.

Sequence in context: A092188 A097884 A094818 * A063086 A077636 A057000

Adjacent sequences:  A114230 A114231 A114232 * A114234 A114235 A114236

KEYWORD

easy,nonn

AUTHOR

Lei Zhou (lzhou5(AT)emory.edu), Nov 20 2005

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 08:21 EST 2012. Contains 205998 sequences.