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!)
A272695 Nearest integer to n*sin(n). 14
0, 1, 2, 0, -3, -5, -2, 5, 8, 4, -5, -11, -6, 5, 14, 10, -5, -16, -14, 3, 18, 18, 0, -19, -22, -3, 20, 26, 8, -19, -30, -13, 18, 33, 18, -15, -36, -24, 11, 38, 30, -7, -38, -36, 1, 38, 41, 6, -37, -47, -13, 34, 51, 21, -30, -55, -29, 25, 58, 38, -18, -59, -46, 11, 59, 54, -2, -57, -61, -8, 54, 68, 18 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
MAPLE
f:=n->round(evalf(n*sin(n))); [seq(f(n), n=0..140)];
MATHEMATICA
Table[Round[n*Sin[n]], {n, 0, 140}] (* Bence Bernáth, Nov 20 2022 *)
PROG
(PARI) a(n) = round(n*sin(n)) \\ Felix Fröhlich, Jun 10 2016
(Python)
from sympy import sin
def A272695(n):
return int((n*sin(n)).round()) # Chai Wah Wu, Jun 10 2016
CROSSREFS
Sequence in context: A038072 A215482 A161481 * A196503 A061151 A249774
KEYWORD
sign,look
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 June 10 22:26 EDT 2024. Contains 373280 sequences. (Running on oeis4.)