login
This site is supported by donations to The OEIS Foundation.

 

Logo

110 people attended OEIS-50 (videos, suggestions); annual fundraising drive to start soon (donate); editors, please edit! (stack is over 300), your editing is more valuable than any donation.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A114998 a(n) = numerator of Sum_{i=1..n} +-1/n, where the sign is -1 iff n is prime. 0
1, 1, 1, 5, 13, 23, 101, 307, 1201, 1453, 13463, 15773, 177329, 203069, 227093, 499231, 7766207, 938543, 16470957, 17764249, 56987867, 60515027, 1314248101, 462870797, 2433336849, 2547743449, 71763644723, 74631981623, 2084014033867, 2161650352627 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,4

COMMENTS

The denominators are given by A003418.

The sum diverges. In fact, the n-th partial sum is C_1 log n - C2 log log n, regardless of ordering, which can only affect c1 and c2. - R. K. Guy.

LINKS

Table of n, a(n) for n=1..30.

EXAMPLE

The partial sums are 1, 1/2, 1/6, 5/12, 13/60, 23/60, 101/420, 307/840, 1201/2520, 1453/2520, ...

MAPLE

f:=proc(n) if isprime(n) then -1/n else 1/n fi; end; g:=proc(n) add(f(i), i=1..n); end;

MATHEMATICA

Table[Numerator[HarmonicNumber[n] - 2*Sum[1/Prime[i], {i, 1, PrimePi[n]}]], {n, 1, 30}] - Stefan Steinerberger, Feb 23 2006

CROSSREFS

Sequence in context: A049833 A075829 A119248 * A140090 A121511 A156679

Adjacent sequences:  A114995 A114996 A114997 * A114999 A115000 A115001

KEYWORD

nonn,frac

AUTHOR

N. J. A. Sloane, Feb 23 2006

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified October 31 00:18 EDT 2014. Contains 248844 sequences.