login
A274088
a(n) = nearest integer to n^2 * sin(sqrt(n)).
12
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,3
LINKS
N. J. A. Sloane and Chai Wah Wu, Table of n, a(n) for n = 0..10000 [Terms n = 0..1000 from N. J. A. Sloane].
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 *)
PROG
(Python)
from sympy import sin, sqrt
def A274088(n):
return int((n**2*sin(sqrt(n))).round()) # Chai Wah Wu, Jun 10 2016
CROSSREFS
KEYWORD
sign,look
AUTHOR
N. J. A. Sloane, Jun 10 2016
STATUS
approved