OFFSET
0,2
EXAMPLE
sin(1)=0.84147..., sin(2)=0.90929..., sin(3)=0.14112..., hence a(2)=3
PROG
(PARI) x=1; y=1; a(n)=if(n<0, 0, b=y+1; while(frac(sin(b))>frac(sin(x)), b++); x=b; y=b; b)
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Feb 01 2003
STATUS
approved