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!)
A274096 a(n) = nearest integer to k*sin(sqrt(k)+j*Pi/2) where n = 2*k+j, 0<=j<=1. 12
0, 0, 1, 1, 2, 0, 3, 0, 4, -2, 4, -3, 4, -5, 3, -6, 2, -8, 1, -9, 0, -10, -2, -11, -4, -11, -6, -12, -8, -12, -10, -11, -12, -10, -14, -9, -16, -8, -18, -7, -19, -5, -21, -3, -22, 0, -23, 2, -24, 4, -24, 7, -24, 10, -24, 13, -23, 15, -23, 18, -22, 21, -20, 23, -19, 26, -17, 28, -15, 31, -13, 33 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
LINKS
PROG
(Python)
from sympy import sin, sqrt, pi
def f(n, t = 1):
k, j = divmod(n, t)
return int((k*sin(sqrt(k)+j*pi/2)).round())
A274096_list = [f(n, 2) for n in range(10001)] # Chai Wah Wu, Jun 11 2016
CROSSREFS
Sequence in context: A240139 A360952 A008800 * A318518 A008808 A008820
KEYWORD
sign
AUTHOR
N. J. A. Sloane, Jun 11 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 20 16:26 EDT 2024. Contains 372717 sequences. (Running on oeis4.)