OFFSET
0,2
COMMENTS
Due to multiplication by 1000 almost all a(n) are different for n<90, the only exception is a(89)=a(88)=999.
FORMULA
a(n) = round(1000*sin(pi*n/180)), where round() is the rounding towards zero function.
a(360+n) = a(n).
a(180+n) = -a(n).
EXAMPLE
sin(pi/2) = sin(90 deg.) = 1, so a(90)=1000.
MATHEMATICA
Table[IntegerPart[1000*Sin[n Degree]], {n, 0, 60}] (* Harvey P. Dale, May 22 2015 *)
PROG
(Python)
import math
for n in range(381): print str(int(math.trunc(1000*math.sin(math.pi*n/180))))+', ',
CROSSREFS
KEYWORD
nonn
AUTHOR
Alex Ratushnyak, Nov 11 2014
EXTENSIONS
Corrected and extended by Harvey P. Dale, May 22 2015
STATUS
approved