login
A024811
a(n) = floor(tan(m*Pi/2)), where m = 1 - 1/n.
1
0, 1, 1, 2, 3, 3, 4, 5, 5, 6, 6, 7, 8, 8, 9, 10, 10, 11, 12, 12, 13, 13, 14, 15, 15, 16, 17, 17, 18, 19, 19, 20, 20, 21, 22, 22, 23, 24, 24, 25, 26, 26, 27, 27, 28, 29, 29, 30, 31, 31, 32, 33, 33, 34, 35, 35, 36, 36, 37, 38, 38, 39, 40, 40, 41, 42, 42, 43, 43, 44, 45, 45, 46, 47, 47, 48, 49, 49, 50, 50
OFFSET
1,4
MATHEMATICA
Floor[Tan[Pi/2 (1-1/Range[80])]] (* Harvey P. Dale, Jul 25 2013 *)
PROG
(PARI) a(n) = floor(tan((1 - 1/n)*Pi/2)) \\ Michel Marcus, Mar 23 2013
CROSSREFS
Sequence in context: A136409 A039729 A074065 * A284006 A131138 A284724
KEYWORD
nonn
STATUS
approved