OFFSET
1,5
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 1..10000
Hugo Pfoertner, Records of A318734, showing negative and positive records.
MATHEMATICA
a[n_] := Sum[(-1)^(k + 1) DivisorSigma[0, 2 k - 1], {k, 1, n}];
Array[a, 100] (* Jean-François Alcover, Sep 17 2018 *)
PROG
(PARI) s=0; j=-1; forstep(k=1, 141, 2, j=-j; s=s+j*numdiv(k); print1(s, ", "))
(PARI) a(n) = sum(k=1, n, (-1)^(k+1)*numdiv(2*k-1)); \\ Michel Marcus, Sep 08 2018
CROSSREFS
KEYWORD
sign,look
AUTHOR
Hugo Pfoertner, Sep 05 2018
STATUS
approved