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!)
A162200 Number on the positive y axis of the n-th horizontal component in the graph of the "mountain path" function for prime numbers. 12
0, 0, 2, 2, 5, 4, 7, 6, 9, 6, 10, 8, 13, 12, 15, 12, 18, 16, 20, 17, 20, 18, 23, 20, 27, 23, 26, 25, 28, 27, 36, 29, 34, 32, 38, 34, 38, 34, 39, 36, 42, 40, 46, 42, 45, 44, 51, 41, 49, 48, 51, 48, 52, 48, 56, 52, 58, 56, 60, 57, 60, 56, 68, 61, 64, 63, 72, 64, 72, 68, 71, 68, 75 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
Note that the n-th horizontal component is an edge with length equal to 1 (see the link: Graph of the mountain path function).
See A162201 for the first differences.
LINKS
MAPLE
A031131 := proc(n) ithprime(n+2)-ithprime(n) ; end: A052288 := proc(n) A031131(n)/2 ; end: A162201 := proc(n) if n <= 2 then 2*(n-1); elif n mod 2 = 0 then A052288(n-1) ; else 2-A052288(n-1) ; fi; end: A162200 := proc(n) add(A162201(j), j=1..n-1) ; end: seq(A162200(n), n=1..150) ; # R. J. Mathar, Jul 15 2009
CROSSREFS
Sequence in context: A241306 A336073 A266792 * A290289 A000019 A318196
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, Jun 28 2009
EXTENSIONS
Edited by Omar E. Pol, Jul 02 2009
More terms from R. J. Mathar, Jul 15 2009
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 07:57 EDT 2024. Contains 371905 sequences. (Running on oeis4.)