login
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