Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A162201
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A162201 First differences of A162200. +0
12
0, 2, 0, 3, -1, 3, -1, 3, -3, 4, -2, 5, -1, 3, -3, 6, -2, 4, -3, 3, -2, 5, -3, 7, -4, 3, -1, 3, -1, 9, -7, 5, -2, 6, -4, 4, -4, 5, -3, 6, -2, 6, -4, 3, -1, 7, -10, 8, -1, 3, -3, 4, -4, 8, -4, 6, -2, 4, -3, 3, -4, 12, -7, 3, -1, 9, -8, 8, -4, 3, -3, 7, -5, 6, -3, 5, -5, 6, -4, 9, -4, 6, -4, 4, -3 (list; graph; listen)
OFFSET

1,2

COMMENT

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

O. E. Pol, Graph of the mountain path function for prime numbers

O. E. Pol, Illustration: The mountain path of the primes

FORMULA

a(n)=A052288(n-1) if n>=2, n even. a(n)=2-A052288(n-1) if n>=3, n odd. [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jul 15 2009]

MAPLE

A031131 := proc(n) ithprime(n+2)-ithprime(n) ; end: A052288 := proc(n) A031131(n)/2 ; end: A160173 := 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: seq(A160173(n), n=1..150) ; [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jul 15 2009]

CROSSREFS

Cf. A000040, A006005, A008578, A162200, A162202, A162203, A162340, A162341, A162342, A162343, A162344.

Sequence in context: A015710 A054875 A029239 this_sequence A029219 A110514 A135157

Adjacent sequences: A162198 A162199 A162200 this_sequence A162202 A162203 A162204

KEYWORD

easy,sign

AUTHOR

Omar E. Pol (info(AT)polprimos.com), Jun 28 2009

EXTENSIONS

Edited by Omar E. Pol (info(AT)polprimos.com), Jul 02 2009

More terms from R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jul 15 2009

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 20 16:09 EST 2009. Contains 171081 sequences.


AT&T Labs Research