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.

A274087 Nearest integer to n^2*sin(n).

Original entry on oeis.org

0, 1, 4, 1, -12, -24, -10, 32, 63, 33, -54, -121, -77, 71, 194, 146, -74, -278, -243, 54, 365, 369, -4, -448, -522, -83, 515, 697, 212, -558, -889, -388, 565, 1089, 612, -525, -1285, -881, 428, 1466, 1192, -267, -1617, -1538, 34, 1723, 1908, 273, -1770, -2290, -656, 1743, 2668, 1112, -1629, -3024, -1636
Offset: 0

Views

Author

N. J. A. Sloane, Jun 10 2016

Keywords

Crossrefs

Programs

  • Mathematica
    Table[Round[n^2 Sin[n]],{n,0,60}] (* Harvey P. Dale, Jul 14 2017 *)
  • Python
    from sympy import sin
    def A274087(n):
        return int((n**2*sin(n)).round()) # Chai Wah Wu, Jun 10 2016