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 A183002 #27 Jan 19 2024 04:57:34 %S A183002 0,0,0,2,2,4,4,6,8,10,10,14,14,16,18,22,22,26,26,30,32,34,34,40,42,44, %T A183002 46,50,50,56,56,60,62,64,66,74,74,76,78,84,84,90,90,94,98,100,100,108, %U A183002 110,114,116,120,120,126,128,134,136,138,138,148,148,150,154 %N A183002 a(n) is the total number of noncentral divisors in all positive integers <= n. %C A183002 The original name was: Partial sums of A161840. %F A183002 a(n) = Sum_{k=1..n} (tau(k)-2 + (tau(k) mod 2)), tau = A000005. %F A183002 a(n) ~ n * (log(n) + 2*gamma - 3), where gamma is Euler's constant (A001620). - _Amiram Eldar_, Jan 19 2024 %p A183002 with(numtheory): %p A183002 b:= n-> (x-> x-2+(x mod 2))(tau(n)): %p A183002 a:= proc(n) option remember; b(n) +`if`(n=1, 0, a(n-1)) end: %p A183002 seq(a(n), n=1..100); %t A183002 Accumulate[Table[d = DivisorSigma[0, n]; If[OddQ[d], d - 1, d - 2], {n, 100}]] %o A183002 (PARI) lista(nmax) = {my(s = 0, d); for(n = 1, nmax, d = numdiv(n); s += (d + d%2 - 2); print1(s, ", ")); } \\ _Amiram Eldar_, Jan 19 2024 %Y A183002 Cf. A000005, A001620, A161840, A183003. %K A183002 nonn,easy %O A183002 1,4 %A A183002 _Omar E. Pol_, Jan 27 2011 %E A183002 New name from _Omar E. Pol_, Jan 04 2022