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
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