OFFSET
1,2
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 1..268
EXAMPLE
a(2) = 9, because s = d(1)-d(3)+d(5)-d(7)+d(9) = 1-2+2-2+3 = 2 exceeds d(1)=1, d(1)-d(3)=-1, d(1)-d(3)+d(5)=1, d(1)-d(3)+d(5)-d(7)=-1.
PROG
(PARI) s=0; smax=0; j=-1; forstep(k=1, 600000, 2, j=-j; s=s+j*numdiv(k); if(s>smax, smax=s; print1(k, ", ")))
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Sep 05 2018
STATUS
approved