OFFSET
1,1
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 1..1040
FORMULA
floor(tan(-n)) = -ceiling(tan(n)).
MATHEMATICA
rootsn = Flatten[Position[Table[Floor[Tan[-i]], {i, 1, 10^3}], 1]];
(*a(n) = rootsn[[n]]*)
Select[Range@600, Floor@Tan@-# == 1 &] (* Robert G. Wilson v, Nov 19 2017 *)
PROG
(PARI) isok(n) = floor(tan(-n)) == 1; \\ Michel Marcus, Nov 03 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
V.J. Pohjola, Oct 15 2017
STATUS
approved