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”).

A126565
a(n) = ceiling(sin(n)*cos(n)).
2
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, 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, 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
OFFSET
0,1
COMMENTS
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).
FORMULA
a(n) = ceiling(sin(n)*cos(n)).
PROG
(PARI) a(n) = ceil(sin(n)*cos(n))
CROSSREFS
Cf. A126564.
Sequence in context: A353307 A286655 A272170 * A215531 A305386 A174998
KEYWORD
nonn
AUTHOR
Rick L. Shepherd, Dec 27 2006
STATUS
approved