cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A000493 a(n) = floor(sin(n)).

Original entry on oeis.org

0, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0
Offset: 0

Views

Author

Keywords

Crossrefs

Cf. A032615, A126564 (even bisection), A000480 (floor cos(n)).

Programs

  • Magma
    [Floor(Sin(n)): n in [0..100]]; // Vincenzo Librandi, Jun 15 2015
  • Maple
    f := n->floor(evalf(sin(n)));
  • Mathematica
    f[ n_ ] := Floor[ N[ Sin[ n ] ] ]
    Floor[Sin[Range[0,90]]] (* Harvey P. Dale, Dec 04 2012 *)

Formula

a(n) = -(A032615(n) mod 2). - Robert Israel, Jun 14 2015