login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A274095 Nearest integer to n*sin(sqrt(n)). 12
0, 1, 2, 3, 4, 4, 4, 3, 2, 1, 0, -2, -4, -6, -8, -10, -12, -14, -16, -18, -19, -21, -22, -23, -24, -24, -24, -24, -23, -23, -22, -20, -19, -17, -15, -13, -10, -7, -5, -1, 2, 5, 8, 12, 15, 19, 22, 25, 29, 32, 35, 39, 42, 45, 47, 50, 52, 54, 56, 58, 60, 61, 62, 63, 63, 64, 64, 63, 63, 62, 61, 60, 58, 56 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Chai Wah Wu, Table of n, a(n) for n = 0..10000

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, 1), n=0..120)];

PROG

(Python)

from sympy import sin, sqrt, pi

def A274095(n, t = 1):

    k, j = divmod(n, t)

    return int((k*sin(sqrt(k)+j*pi/2)).round())

A274095_list = [A274095(n, 1) for n in range(10001)] # Chai Wah Wu, Jun 11 2016

CROSSREFS

Sequences of the same type: A272695, A274086, A274087, A274088, A274090, A274091, A274092, A274095, A274096, A274097, A274101, A274102.

Sequence in context: A286551 A290097 A241283 * A263408 A109870 A171502

Adjacent sequences:  A274092 A274093 A274094 * A274096 A274097 A274098

KEYWORD

sign,look

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 22 15:57 EDT 2019. Contains 328318 sequences. (Running on oeis4.)