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”).
%I #5 Nov 28 2023 10:44:48
%S 3,5,11,17,19,27,29,35,41,43,49,57,59,65,69,71,77,79,83,95,101,107,
%T 125,127,131,137,147,149,153,161,163,169,173,179,189,191,197,201,221,
%U 227,229,233,239,247,253,259,267,269,275,281,305,311,327,329,347,349,353
%N Numbers of the form 2*prime(i) - prime(i+1) + 2.
%C A124115 sorted and duplicates removed.
%e 2*prime(21) - prime(22) + 2 = 2*73 - 79 + 2 = 69, so 69 is in the sequence.
%t 2#[[1]]-#[[2]]+2&/@Partition[Prime[Range[80]],2,1]//Union (* _Harvey P. Dale_, Nov 28 2023 *)
%o (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],","))}
%Y Cf. A124115.
%K nonn
%O 1,1
%A _Klaus Brockhaus_, Nov 28 2006