OFFSET
0,2
EXAMPLE
The partial sums are 0, 0.84147.. = A049469, 1.7507.., 1.89188.., 1.13508.., 0.1761..., -0.1032..., 0.5537,..., and -0.1032.. is the first to become smaller than 0, so a(1)=6. - R. J. Mathar, Nov 14 2019
MATHEMATICA
n = 30000;
i = Range[0, n];
x = Accumulate[N[Sin[i]]];
y = Table[Min[x[[1 ;; k]]], {k, n + 1}];
z = DeleteDuplicatesBy[Transpose[{i, y}], Last][[All, 1]]
PROG
(Python)
x = numpy.arange(n)
y = numpy.sin(x)
y = numpy.cumsum(y)
y = numpy.minimum.accumulate(y)
y = numpy.diff(y)
y = numpy.insert(y, 0, -1)
x[y < 0.]
CROSSREFS
KEYWORD
nonn
AUTHOR
Josselin Noirel, Dec 04 2018
STATUS
approved