Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A163059
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A163059 An alternating sum from 4*n-3 up to the smaller of the n-th twin primes. +0
1
2, 5, 10, 15, 23, 31, 42, 50, 67, 72, 89, 97, 114, 122, 127, 144, 152, 169, 177, 194, 214, 252, 260, 277, 309, 335, 352, 363, 377, 388, 465, 473, 478, 495, 509, 580, 588, 599, 607, 624, 656, 697, 723, 731, 739, 750, 806, 820, 837, 842, 904, 912, 938, 955, 969, 1004 (list; graph; listen)
OFFSET

1,1

COMMENT

Consider the alternating sums S(l,h) = -sum_{j=l..u} j*(-1)^j = A001057(u)-A001057(l-1).

a(n) is this sum for a lower limit of 4n-3 = A016813(n-1) and an upper limit of A001359(n).

FORMULA

a(n) = A001057(A001359(n))-A001057(4*n-4).

EXAMPLE

a(1)=1-2+3=2. a(2)=5. a(3)=9-10+11. a(4)=13-14+15-16+17=15. a(5)=17-18+19-20+21-22+23-24+25-26+27-28+29=20.

MAPLE

A001057 := proc(n) (-1)^(n+1)*floor((n+1)/2) ; end:

A001359 := proc(n) local a; option remember ; if n = 1 then 3; else for a from procname(n-1)+1 do if isprime(a) and isprime(a+2) then RETURN(a) ; fi; od: fi; end:

A163059 := proc(n) A001057(A001359(n))-A001057(4*n-4) ; end: seq(A163059(n), n=1..80) ; # R. J. Mathar, Aug 02 2009

CROSSREFS

Cf. A001359, A016813.

Sequence in context: A080551 A008822 A013927 this_sequence A099738 A117582 A002134

Adjacent sequences: A163056 A163057 A163058 this_sequence A163060 A163061 A163062

KEYWORD

nonn

AUTHOR

Juri-Stepan Gerasimov (2stepan(AT)rambler.ru), Jul 20 2009

EXTENSIONS

a(5) and a(23)-a(25) corrected by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Aug 02 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 November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research