login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

10^n-th difference between cumulative prime and odd sums.
2

%I #13 May 11 2023 09:38:44

%S 38,14478,2688838,396250152,52261798440,6472980453364,770530574266708

%N 10^n-th difference between cumulative prime and odd sums.

%H Chai Wah Wu, <a href="/A134182/b134182.txt">Table of n, a(n) for n = 1..23 (using terms from A006988 and A099824)</a>

%F Beginning at 3, compute the sums of the prime and odd sequences at 10^n and take the difference.

%F a(n) = A099824(n)+prime(10^n+1)-(10^n*(10^n+2))-2. - _Chai Wah Wu_, Mar 30 2020

%e a(2)=14478 because at 10^2, 100 sums of primes and odds, the prime sum is 24678, the odd sum is 10200 and the difference is 14478

%o (UBASIC) 10 N=1:A=2 20 A=nxtprm(A):B=B+A 30 N=N+2:D=D+N 40 if C=9 then print A;N;B;D;B-D:stop 50 C=C+1: if C<10 then 20

%Y Cf. A006988, A071148, A005563, A099824, A134181.

%K more,nonn

%O 1,1

%A _Enoch Haga_, Oct 13 2007