Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #21 Dec 31 2017 01:32:06
%S 18,21,40,43,62,65,84,87,90,106,109,112,128,131,134,150,153,156,172,
%T 175,178,197,200,219,222,241,244,263,266,285,288,307,310,329,332,351,
%U 354,373,376,395,398,417,420,439,442,445,461,464,467,483,486,489,505,508,511,527,530,533,552,555,574,577,596
%N Values of positive integer i such that floor(tan(-i)) = 1.
%H Robert G. Wilson v, <a href="/A293751/b293751.txt">Table of n, a(n) for n = 1..1040</a>
%F floor(tan(-n)) = -ceiling(tan(n)).
%t rootsn = Flatten[Position[Table[Floor[Tan[-i]], {i, 1, 10^3}], 1]];
%t (*a(n) = rootsn[[n]]*)
%t Select[Range@600, Floor@Tan@-# == 1 &] (* _Robert G. Wilson v_, Nov 19 2017 *)
%o (PARI) isok(n) = floor(tan(-n)) == 1; \\ _Michel Marcus_, Nov 03 2017
%Y Cf. A000530, A293698, A293699, A293702, A293705, A293700, A293701, A293704. a(n) are also the roots of A195910(i)=1, starting from i=1.
%K nonn
%O 1,1
%A _V.J. Pohjola_, Oct 15 2017