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!)
A124115 a(n) = 2*prime(n) - prime(n+1) + 2. 3
3, 3, 5, 5, 11, 11, 17, 17, 19, 29, 27, 35, 41, 41, 43, 49, 59, 57, 65, 71, 69, 77, 79, 83, 95, 101, 101, 107, 107, 101, 125, 127, 137, 131, 149, 147, 153, 161, 163, 169, 179, 173, 191, 191, 197, 189, 201, 221, 227, 227, 229, 239, 233, 247, 253, 259, 269, 267, 275 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MAPLE
a:=n->2*ithprime(n)-ithprime(n+1)+2: seq(a(n), n=1..75); # Emeric Deutsch, Nov 28 2006
MATHEMATICA
2#[[1]]-#[[2]]+2&/@Partition[Prime[Range[60]], 2, 1] (* Harvey P. Dale, May 25 2012 *)
PROG
(PARI) {p=2; q=3; while(p<280, print1(2*p-q+2, ", "); p=q; q=nextprime(q+1))} \\ Klaus Brockhaus, Nov 28 2006
CROSSREFS
Cf. A125631.
Sequence in context: A078752 A343045 A343041 * A124114 A077893 A077953
KEYWORD
nonn
AUTHOR
Giovanni Teofilatto, Nov 28 2006
EXTENSIONS
Edited, corrected and extended by Klaus Brockhaus and Emeric Deutsch, Nov 28 2006
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 10:29 EDT 2024. Contains 371905 sequences. (Running on oeis4.)