login
A274101
a(n) = nearest integer to k*sin(sqrt(k)+j*Pi/2) where n = 4*k+j, 0<=j<4.
12
0, 0, 0, 0, 1, 1, -1, -1, 2, 0, -2, 0, 3, 0, -3, 0, 4, -2, -4, 2, 4, -3, -4, 3, 4, -5, -4, 5, 3, -6, -3, 6, 2, -8, -2, 8, 1, -9, -1, 9, 0, -10, 0, 10, -2, -11, 2, 11, -4, -11, 4, 11, -6, -12, 6, 12, -8, -12, 8, 12, -10, -11, 10, 11, -12, -10, 12, 10, -14, -9, 14, 9, -16, -8, 16, 8, -18, -7, 18, 7, -19, -5
OFFSET
0,9
LINKS
MAPLE
Digits:=50:
ft:=proc(n, t) local k, j;
j:=(n mod t); k:=(n-j)/t;
round(evalf(k*sin(sqrt(k)+j*Pi/2)));
end;
[seq(ft(n, 4), n=0..120)];
CROSSREFS
KEYWORD
sign
AUTHOR
N. J. A. Sloane, Jun 11 2016
EXTENSIONS
Definition corrected by N. J. A. Sloane, Jun 20 2016
STATUS
approved