|
Search: id:A106738
|
|
|
| A106738 |
|
Difference between the sums of odd indexed primes and even indexed primes up to and including index 10^n. |
|
+0 1
|
| |
|
|
OFFSET
|
1,1
|
|
|
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 (mathar(AT)strw.leidenuniv.nl), 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 (mathar(AT)strw.leidenuniv.nl), Feb 13 2008
|
|
CROSSREFS
|
Adjacent sequences: A106735 A106736 A106737 this_sequence A106739 A106740 A106741
Sequence in context: A027400 A053100 A126422 this_sequence A001508 A034242 A142811
|
|
KEYWORD
|
more,nonn
|
|
AUTHOR
|
Cino Hilliard (hillcino368(AT)gmail.com), May 15 2005
|
|
EXTENSIONS
|
Edited by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Feb 13 2008
|
|
|
Search completed in 0.002 seconds
|