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.

A274088 a(n) = nearest integer to n^2 * sin(sqrt(n)).

Original entry on oeis.org

0, 1, 4, 9, 15, 20, 23, 23, 20, 11, -2, -21, -46, -76, -111, -150, -194, -240, -289, -339, -389, -437, -484, -527, -566, -599, -626, -645, -656, -658, -649, -630, -600, -559, -505, -440, -362, -273, -171, -58, 66, 201, 346, 501, 664, 835, 1013, 1197, 1385, 1577, 1772, 1968, 2164, 2359, 2551, 2740
Offset: 0

Views

Author

N. J. A. Sloane, Jun 10 2016

Keywords

Crossrefs

Programs

  • Maple
    Digits:=50: f:=n->round(evalf(n^2*sin(sqrt(n)))); [seq(f(n),n=0..120)];
  • Mathematica
    Table[Round[n^2 * Sin[Sqrt[n]]], {n,0,50}] (* G. C. Greubel, Jun 10 2016 *)
  • Python
    from sympy import sin, sqrt
    def A274088(n):
        return int((n**2*sin(sqrt(n))).round()) # Chai Wah Wu, Jun 10 2016