|
|
A054785
|
|
a(n) = sigma(2n) - sigma(n), where sigma is the sum of divisors of n,A000203.
|
|
24
|
|
|
2, 4, 8, 8, 12, 16, 16, 16, 26, 24, 24, 32, 28, 32, 48, 32, 36, 52, 40, 48, 64, 48, 48, 64, 62, 56, 80, 64, 60, 96, 64, 64, 96, 72, 96, 104, 76, 80, 112, 96, 84, 128, 88, 96, 156, 96, 96, 128, 114, 124, 144, 112, 108, 160, 144, 128, 160, 120, 120, 192, 124, 128, 208
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
Sum_{k=1..n} a(k) ~ c * n^2, where c = Pi^2/8 = 1.2337005... (A111003). -Amiram Eldar,Jan 19 2024
|
|
EXAMPLE
|
n=9: sigma(18)=18+9+6+3+2+1=39, sigma(9)=9+3+1=13, a(9)=39-13=26.
|
|
MAPLE
|
a:= proc(n) local e;
e:= 2^padic:-ordp(n, 2);
2*e*numtheory:-sigma(n/e)
end proc:
|
|
MATHEMATICA
|
Table[DivisorSigma[1, 2n]-DivisorSigma[1, n], {n, 70}] (*Harvey P. Dale,May 11 2014 *)
Table[CoefficientList[Series[-Log[EllipticTheta[4, 0, x]], {x, 0, 80}], x][[n + 1]] n, {n, 1, 80}] (*Benedict W. J. Irwin,Jul 05 2016 *)
|
|
PROG
|
(Magma) [DivisorSigma(1, 2*n) - DivisorSigma(1, n): n in [1..70]];Vincenzo Librandi,Oct 05 2018
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|