login
A333189
a(n) = [2^n csc(1/n)] - [2^n cot(1/n)] - [2^n (csc(1/n) - cot(1/n))], where [ ] = floor.
5
0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0
OFFSET
1
FORMULA
a(n) = [2^n csc(1/n)] - [2^n cot(1/n)] - [2^n (csc(1/n) - cot(1/n))], where [ ] = floor.
MATHEMATICA
z = 50; u = Table[Floor[2^n Csc[1/n]], {n, 1, z}] (* A333186 *)
v = Table[Floor[2^n Cot[1/n]], {n, 1, z}] (* A333187 *)
u - v (* A333188 *)
w = Table[Floor[2^n Csc[1/n] - 2^n Cot[1/n]], {n, 1, z}];
u - v - w (* A333189 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Mar 11 2020
STATUS
approved