OFFSET
1,2
COMMENTS
Sin(10265498) =-0.9999999999999999313932793053103935998520142594607...
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 1..93, terms a(1)..a(88) from Robert G. Wilson v
MATHEMATICA
z={}; current=1; Timing[ Do[ If[ Sin[ n ]<current, AppendTo[ z, current=Sin[ n ] ] ], {n, 30000} ] ]; z
d = 1; lst = {}; Do[a = Sin@n; If[a > d, d = a; Print@n; AppendTo[lst, n]], {n, 111111111}]; lst (* Robert G. Wilson v, Aug 24 2007 *)
PROG
(PARI) d=oo; print1("1, 3, "); for(k=1, 10^8, my(di=2*k/Pi, dir=round(di), dd); if(dir%4==3, dd=abs(di-dir); if(dd<d, print1(k, ", "); d=dd))) \\ Hugo Pfoertner, Feb 29 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved