login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

a(n) = 1 if abs(tan(n)) > 1, 0 otherwise.
1

%I #25 Jun 12 2024 17:05:07

%S 1,1,0,1,1,0,0,1,0,0,1,0,0,1,0,0,1,1,0,1,1,0,1,1,0,1,1,0,0,1,0,0,1,0,

%T 0,1,0,0,1,1,0,1,1,0,1,1,0,1,1,0,0,1,0,0,1,0,0,1,0,0,1,1,0,1,1,0,1,1,

%U 0,1,1,0,0,1,0,0,1,0,0,1,0,0,1,1,0,1,1

%N a(n) = 1 if abs(tan(n)) > 1, 0 otherwise.

%H Amiram Eldar, <a href="/A372456/b372456.txt">Table of n, a(n) for n = 1..10000</a>

%e For n = 43, tan(43) = -1.498387339..., and abs(-1.498387339...) > 1, so a(43) = 1.

%t Table[Boole[Abs[Tan[n]] > 1], {n, 1, 100}] (* _Amiram Eldar_, May 02 2024 *)

%o (PARI) a(n) = abs(tan(n)) > 1; \\ _Michel Marcus_, May 01 2024

%Y Cf. A126565, A126564, A330035.

%K nonn,easy

%O 1,1

%A _Ahmad J. Masad_, May 01 2024