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!)
A062234 a(n) = 2*prime(n) - prime(n+1). 27
1, 1, 3, 3, 9, 9, 15, 15, 17, 27, 25, 33, 39, 39, 41, 47, 57, 55, 63, 69, 67, 75, 77, 81, 93, 99, 99, 105, 105, 99, 123, 125, 135, 129, 147, 145, 151, 159, 161, 167, 177, 171, 189, 189, 195, 187, 199, 219, 225, 225, 227, 237, 231, 245, 251, 257, 267, 265, 273, 279 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

COMMENTS

It is known that a(n) > 0 for all n (Tchebycheff, 1850).

The analog for Ramanujan primes is Paksoy's theorem that 2*R(n) - R(n+1) > 0 for n > 1. See A233822. - Jonathan Sondow, Dec 16 2013

REFERENCES

J. V. Uspensky and M. A. Heaslet, Elementary Number Theory, McGraw-Hill, NY, 1939.

LINKS

Harry J. Smith, Table of n, a(n) for n = 1..1000

FORMULA

a(n) = A000040(n) - A001223(n). - Zak Seidov, Sep 07 2012

a(n) = 2*A000040(n) - A000040(n+1). - Zak Seidov, May 12 2020

MAPLE

a:= n-> (p-> 2*p(n)-p(n+1))(ithprime):

seq(a(n), n=1..60);  # Alois P. Heinz, Feb 09 2022

PROG

(PARI) a(n) = 2*prime(n) - prime(n + 1); \\ Harry J. Smith, Aug 03 2009

(Haskell)

a062234 n = a062234_list !! (n-1)

a062234_list = zipWith (-) (map (* 2) a000040_list) (tail a000040_list)

-- Reinhard Zumkeller, May 31 2015

CROSSREFS

Cf. A000040, A001223, A215808 (prime terms), A233822.

Cf. A100484, A258383 (run lengths), A258432, A258469, A257762, A258449, A257892, A257951.

Sequence in context: A183429 A107443 A204099 * A168329 A161828 A219128

Adjacent sequences:  A062231 A062232 A062233 * A062235 A062236 A062237

KEYWORD

easy,nonn

AUTHOR

Reinhard Zumkeller, Jun 29 2001

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 September 24 18:55 EDT 2022. Contains 356949 sequences. (Running on oeis4.)