login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

a(n) = floor(sin(n)).
8

%I #27 Sep 08 2022 08:44:28

%S 0,0,0,0,-1,-1,-1,0,0,0,-1,-1,-1,0,0,0,-1,-1,-1,0,0,0,-1,-1,-1,-1,0,0,

%T 0,-1,-1,-1,0,0,0,-1,-1,-1,0,0,0,-1,-1,-1,0,0,0,0,-1,-1,-1,0,0,0,-1,

%U -1,-1,0,0,0,-1,-1,-1,0,0,0,-1,-1,-1,-1,0,0,0,-1,-1,-1,0,0,0,-1,-1,-1,0,0

%N a(n) = floor(sin(n)).

%H Robert Israel, <a href="/A000493/b000493.txt">Table of n, a(n) for n = 0..10000</a>

%F a(n) = -(A032615(n) mod 2). - _Robert Israel_, Jun 14 2015

%p f := n->floor(evalf(sin(n)));

%t f[ n_ ] := Floor[ N[ Sin[ n ] ] ]

%t Floor[Sin[Range[0,90]]] (* _Harvey P. Dale_, Dec 04 2012 *)

%o (Magma) [Floor(Sin(n)): n in [0..100]]; // _Vincenzo Librandi_, Jun 15 2015

%Y Cf. A032615, A126564 (even bisection), A000480 (floor cos(n)).

%K sign,easy

%O 0,1

%A _N. J. A. Sloane_