The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation. Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A106738 Difference between the sums of odd-indexed primes and even-indexed primes up to and including index 10^n. 1
 13, 251, 4031, 52017, 652039, 7746369, 89721621, 1019145113 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 LINKS FORMULA Sum1 = prime(1) + prime(3) + ... + prime(k), k=1, 3, 5, ..., 10^n-1. a(n) = Sum_{i=1..10^n} (-1)^i*A000040(i). - R. J. Mathar, Feb 13 2008 MAPLE A106738 := proc(n) local a, i ; a :=0 ; for i from 1 to 10^n do a := a+(-1)^i*ithprime(i) ; od: RETURN(a) ; end: for n from 1 do print(A106738(n)) ; od: # R. J. Mathar, Feb 13 2008 MATHEMATICA a[n_] := Module[{a = 0}, For[i = 1, i <= 10^n, i++, a = a + (-1)^i*Prime[i]]; a]; Table[Print[an = a[n]]; an, {n, 1, 8}] (* Jean-François Alcover, Dec 17 2012, after R. J. Mathar *) CROSSREFS Sequence in context: A183416 A126422 A286878 * A332849 A001508 A157946 Adjacent sequences:  A106735 A106736 A106737 * A106739 A106740 A106741 KEYWORD more,nonn AUTHOR Cino Hilliard, May 15 2005 EXTENSIONS Edited by R. J. Mathar, Feb 13 2008 a(7)-a(8) from Donovan Johnson, Nov 30 2008 STATUS approved

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

Last modified July 5 23:36 EDT 2020. Contains 335475 sequences. (Running on oeis4.)