OFFSET
0,7
LINKS
N. J. A. Sloane and Chai Wah Wu, Table of n, a(n) for n = 0..10000 n = 0..1000 from N. J. A. Sloane
MAPLE
Digits:=50:
ft:=proc(n, t) local k, j;
j:=(n mod t); k:=(n-j)/t;
round(evalf(k^2*sin(sqrt(k)+j*Pi/2)));
end;
[seq(ft(n, 3), n=0..120)];
PROG
(Python)
from sympy import sin, sqrt, pi
def A274092(n):
k, j = divmod(n, 3)
return int((k**2*sin(sqrt(k)+j*pi/2)).round()) # Chai Wah Wu, Jun 10 2016
CROSSREFS
KEYWORD
sign
AUTHOR
N. J. A. Sloane, Jun 10 2016
STATUS
approved