OFFSET
1,2
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 1..131
EXAMPLE
The first 4 fractions f(i)=A203810(i)/A203811(i) 1/1, 1/2, 1/6, -1/12 have decreasing absolute values. Therefore a(1)=1, a(2)=2, a(3)=3, a(4)=4. 5 is not in the sequence, because f(5)=7/60>1/12, but f(6)=-1/20 gives a(5)=6 because 1/20<1/12.
Fractions producing further decreasing absolute values are f(8)=-9/280, f(10)=-53/2520, f(12)=-373/27720, f(14)=-2869/360360, f(16)=-547/144144, f(18)=-1291/2450448, f(22)=-13913/232792560, f(30)=93259013/232908956280.
PROG
(PARI)
s=0; d=2; \
for (k=1, 12500, if(s>0, s-=1/k, s+=1/k); if(abs(s)<d, d=abs(s); print1(k, ", ")))
\\ Hugo Pfoertner, Nov 14 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner and Rainer Rosenthal, Jan 06 2012
STATUS
approved