The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A274092 a(n) = nearest integer to k^2*sin(sqrt(k)+j*Pi/2) where n = 3*k+j, 0<=j<3. 12
0, 0, 0, 1, 1, -1, 4, 1, -4, 9, -1, -9, 15, -7, -15, 20, -15, -20, 23, -28, -23, 23, -43, -23, 20, -61, -20, 11, -80, -11, -2, -100, 2, -21, -119, 21, -46, -137, 46, -76, -151, 76, -111, -162, 111, -150, -167, 150, -194, -167, 194, -240, -161, 240, -289, -147, 289, -339, -125, 339, -389, -95, 389 (list; graph; refs; listen; history; text; internal format)
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
Sequence in context: A079185 A133819 A344686 * A349039 A021245 A007891
KEYWORD
sign
AUTHOR
N. J. A. Sloane, Jun 10 2016
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 15 19:42 EDT 2024. Contains 372549 sequences. (Running on oeis4.)