login
a(n) = floor(cot(n)).
4

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

%S 0,-1,-8,0,-1,-4,1,-1,-3,1,-1,-2,2,0,-2,3,0,-1,6,0,-1,112,0,-1,-8,0,

%T -1,-4,1,-1,-3,1,-1,-2,2,0,-2,3,0,-1,6,0,-1,56,0,-1,-9,0,-1,-4,1,-1,

%U -3,1,-1,-2,2,0,-2,3,0,-1,5,0,-1,37,0,-1,-9,0,-1,-4,1,-1,-3,1,-1,-2,2,0,-2,3,0,-1,5,0,-1,28,0,-1,-10,0,-1,-4,1,-1,-3

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

%C Contains all integers infinitely often. - _Charles R Greathouse IV_, Aug 06 2012

%H T. D. Noe, <a href="/A037448/b037448.txt">Table of n, a(n) for n = 1..1000</a>

%o (PARI) v=[]; for(n=1,260,v=concat(v,floor(cotan(n)))); v

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

%Y Cf. A195911, A195910, A000503, A005657, A000493, A000480, A000494, A000484.

%K sign

%O 1,3

%A _Jason Earls_, Jun 30 2001

%E a(44) corrected by _T. D. Noe_, Jan 21 2008