login
a(n) = ceiling(sin(n)*cos(n)).
2

%I #5 Jun 24 2019 22:13:35

%S 0,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,0,1,0,

%T 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,0,1,1,

%U 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,0,1,0,0,1,1,0,1

%N a(n) = ceiling(sin(n)*cos(n)).

%C For all nonzero integers n, ceiling(sin(n)*cos(n)) = 1 + floor(sin(n)*cos(n)), so a(n) = 1 + A126564(n) for n > 0 (a(0) = A126564(0) = 0).

%F a(n) = ceiling(sin(n)*cos(n)).

%o (PARI) a(n) = ceil(sin(n)*cos(n))

%Y Cf. A126564.

%K nonn

%O 0,1

%A _Rick L. Shepherd_, Dec 27 2006