OFFSET
1,2
COMMENTS
The absolute value of a(n) is also the length of the n-th vertical edge in the graph of the "mountain path" function for prime numbers.
See A162200 for the length of the n-th horizontal component.
LINKS
FORMULA
From R. J. Mathar, Jul 15 2009: (Start)
a(n) = A052288(n-1) if n >= 2, n even.
a(n) = 2 - A052288(n-1) if n >= 3, n odd. (End)
MAPLE
CROSSREFS
KEYWORD
easy,sign
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