OFFSET
0,3
COMMENTS
Note that this sequence lists such values only for nonnegative integers, although the function is defined in all Z.
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..10000
FORMULA
If n is equal to floor(tan(n)) then a(n) = n, otherwise (for any other n whether positive or negative) a(n) = min(n, a(floor(tan(n))). [Recurrence defined in whole Z.]
PROG
(MIT/GNU Scheme) (define (A258201 n) (let loop ((n n) (m n)) (let ((next (floor->exact (tan n)))) (if (= n next) m (loop next (min m next))))))
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, May 26 2015
STATUS
approved