Gottfried Sequence by clock(pooq)

a={0}for i=1,1e5 do a[i+1]=a[i]-(-1)^i/(2*i-1)end
r=io.read
r()while""do print(("%.15g"):format(a[r()+1]))end

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page