cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A175794 a(n) = Sum_{k=1..n} (-1)^A001620(k).

This page as a plain text file.
%I A175794 #13 Aug 27 2018 22:32:37
%S A175794 -1,-2,-3,-2,-3,-4,-3,-2,-1,-2,-1,-2,-3,-4,-3,-2,-1,0,1,2,3,2,1,2,3,2,
%T A175794 3,4,5,6,7,8,9,10,9,8,9,10,11,10,9,8,7,6,5,4,3,2,1,2,1,0,-1,0,1,2,1,0,
%U A175794 1,0,1,0,1,2,3,4,5,6,5,4,5,6,5,4,3,4,5,6,7,6,7,6,5,6,5,6,5,6,7,6,7,6,5,4,5
%N A175794 a(n) = Sum_{k=1..n} (-1)^A001620(k).
%H A175794 G. C. Greubel, <a href="/A175794/b175794.txt">Table of n, a(n) for n = 1..10000</a>
%e A175794 a(6) = -4 is in the sequence because -4 = (-1)^5 + (-1)^7 + (-1)^7 + (-1)^2 + (-1)^1 + (-1)^5
%p A175794 with(numtheory):T:=array(1..201): Digits:=200:nn:=10^200:a:=floor(evalf(gamma(0))*nn): n:=a:l:=length(n):n0:=n:s:=0:for m from 1 to l do:q:=n0:u:=irem(q,10):v:=iquo(q,10):n0:=v :T[m]:=u:od: for p from l to 1 by -1 do:s:=s+(-1)^T[p]: printf(`%d, `, s):od:
%t A175794 Rest@ FoldList[ Plus, 0, (-1)^First@ RealDigits[EulerGamma, 10, 200]] (* or *) Accumulate[(-1)^RealDigits[EulerGamma,10,100][[1]]] (* _Harvey P. Dale_, May 11 2014 *)
%Y A175794 A001620 is the decimal expansion of Euler's constant (or Euler-Mascheroni constant) gamma.
%K A175794 sign,obsc,less,base
%O A175794 1,2
%A A175794 _Michel Lagneau_, Sep 06 2010