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.
%I A309124 #8 Oct 28 2020 03:57:15 %S A309124 1,2,0,1,7,5,-1,0,7,13,3,1,15,9,-3,-2,16,23,5,11,23,13,-9,-11,20,34, %T A309124 14,8,38,26,-4,-3,17,35,-1,6,44,26,-2,4,46,58,16,6,48,26,-20,-22,21, %U A309124 52,16,30,84,64,4,-2,34,64,6,-6,56,26,-16,-15,69,89,23,41,85,49,-21,-14,60,98,36 %N A309124 a(n) = n - 3 * floor(n/3) + 5 * floor(n/5) - 7 * floor(n/7) + ... %C A309124 Partial sums of A050457. %H A309124 Robert Israel, <a href="/A309124/b309124.txt">Table of n, a(n) for n = 1..10000</a> %F A309124 G.f.: (1/(1 - x)) * Sum_{k>=1} (-1)^(k+1) * (2*k - 1) * x^(2*k-1)/(1 - x^(2*k-1)). %p A309124 f:= proc(n) local r,d; %p A309124 r:= n/2^padic:-ordp(n,2); %p A309124 add((-1)^((d-1)/2)*d, d = numtheory:-divisors(r)) %p A309124 end proc: %p A309124 ListTools:-PartialSums(map(f,[$1..100])); # _Robert Israel_, Oct 28 2020 %t A309124 Table[Sum[(-1)^(k + 1) (2 k - 1) Floor[n/(2 k - 1)], {k, 1, n}], {n, 1, 75}] %t A309124 nmax = 75; CoefficientList[Series[1/(1 - x) Sum[(-1)^(k + 1) (2 k - 1) x^(2 k - 1)/(1 - x^(2 k - 1)), {k, 1, nmax}], {x, 0, nmax}], x] // Rest %Y A309124 Cf. A014200, A024919, A050457, A078471. %K A309124 sign %O A309124 1,2 %A A309124 _Ilya Gutkovskiy_, Jul 13 2019