login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A125631
Numbers of the form 2*prime(i) - prime(i+1) + 2.
1
3, 5, 11, 17, 19, 27, 29, 35, 41, 43, 49, 57, 59, 65, 69, 71, 77, 79, 83, 95, 101, 107, 125, 127, 131, 137, 147, 149, 153, 161, 163, 169, 173, 179, 189, 191, 197, 201, 221, 227, 229, 233, 239, 247, 253, 259, 267, 269, 275, 281, 305, 311, 327, 329, 347, 349, 353
OFFSET
1,1
COMMENTS
A124115 sorted and duplicates removed.
EXAMPLE
2*prime(21) - prime(22) + 2 = 2*73 - 79 + 2 = 69, so 69 is in the sequence.
MATHEMATICA
2#[[1]]-#[[2]]+2&/@Partition[Prime[Range[80]], 2, 1]//Union (* Harvey P. Dale, Nov 28 2023 *)
PROG
(PARI) {p=2; q=3; v=[]; while(p<370, v=concat(v, 2*p-q+2); p=q; q=nextprime(q+1)); v=listsort(List(v), 1); for(j=1, #v-1, print1(v[j], ", "))}
CROSSREFS
Cf. A124115.
Sequence in context: A088328 A102643 A279767 * A045408 A092740 A214296
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Nov 28 2006
STATUS
approved