OFFSET
1,5
EXAMPLE
1/1 - 1/2 - 1/3 + 1/4 - 1/5 - 1/6 = 1/20, so a(6)=1.
MATHEMATICA
nMax = 19; d = {0}; Table[d = Flatten[{d + 1/n, d - 1/n}]; Min[Abs[Numerator[d]]], {n, nMax}] (* T. D. Noe, Nov 19 2013 *)
PROG
(PARI) a(n) = {lcmn = 1; for (i=1, n, lcmn = lcm(i, lcmn)); minn = lcmn; for (i=0, 2^(n-1)-1, b = binary(i); while (#b != n, b = concat(0, b); ); num = numerator(abs(sum(ii = 1, n, (-1)^b[ii]/ii))); minn = min(minn, num); ); return(minn); } \\ Michel Marcus, Jun 15 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Greg Martin (gerg(AT)math.toronto.edu), Apr 19 2001
EXTENSIONS
More terms from Naohiro Nomoto, Jun 24 2001
a(22)-a(25) from Zak Seidov, Nov 20 2013
a(26)-a(33) from Zak Seidov, Nov 24 2013
a(34)-a(37) from Giovanni Resta, Jun 12 2016
STATUS
approved