Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A008347
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A008347 a(n) = sum_{i=0..n-1} (-1)^i prime(n-i). +0
8
0, 2, 1, 4, 3, 8, 5, 12, 7, 16, 13, 18, 19, 22, 21, 26, 27, 32, 29, 38, 33, 40, 39, 44, 45, 52, 49, 54, 53, 56, 57, 70, 61, 76, 63, 86, 65, 92, 71, 96, 77, 102, 79, 112, 81, 116, 83, 128, 95, 132, 97, 136, 103, 138, 113, 144, 119, 150, 121, 156, 125, 158, 135, 172, 139, 174, 143 (list; graph; listen)
OFFSET

0,2

COMMENT

Define the sequence b(n) by b(1) = 1; b(n) = 1-(prime(n-1)/prime(n))*b(n-1) if n > 1. Then b(n) = a(n)/prime(n). Does lim b(n) exist? If so, it must equal 1/2. - Joseph L. Pe, Feb 17 2003

LINKS

T. D. Noe, Table of n, a(n) for n = 0..2000

FORMULA

a(n) = prime(n) - a(n-1) for n>=1.

MAPLE

A008347 := proc(n) options remember; if n = 0 then 0 else abs(A008347(n-1)-ithprime(n)); fi; end;

CROSSREFS

Sequence in context: A074987 A128280 A106625 this_sequence A112387 A076077 A152194

Adjacent sequences: A008344 A008345 A008346 this_sequence A008348 A008349 A008350

KEYWORD

nonn

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com) and J. H. Conway (conway(AT)math.princeton.edu)

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 6 13:45 EST 2009. Contains 170429 sequences.


AT&T Labs Research