login
a(n) = [2^n csc(1/n)] - [2^n cot(1/n)], where [ ] = floor.
4

%I #5 Mar 31 2020 10:20:01

%S 1,1,1,2,4,5,10,16,28,52,94,170,316,586,1093,2048,3856,7284,13800,

%T 26220,49942,95341,182390,349576,671178,1290714,2485798,4793999,

%U 9257313,17897354,34639837,67114326,130160485,252663350,490886799,954498552,1857396219

%N a(n) = [2^n csc(1/n)] - [2^n cot(1/n)], where [ ] = floor.

%F a(n) = [2^n csc(1/n)] - [2^n cot(1/n)], where [ ] = floor.

%t z = 50; u = Table[Floor[2^n Csc[1/n]], {n, 1, z}] (* A333186 *)

%t v = Table[Floor[2^n Cot[1/n]], {n, 1, z}] (* A333187 *)

%t u - v (* A333188 *)

%t w = Table[Floor[2^n Csc[1/n] - 2^n Cot[1/n]], {n, 1, z}];

%t u - v - w (* A333189 *)

%Y Cf. A333186, A333187, A333189.

%K nonn,easy

%O 1,4

%A _Clark Kimberling_, Mar 11 2020