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!)
A358520 Nearest integer to n/sin(n). 1
1, 2, 21, -5, -5, -21, 11, 8, 22, -18, -11, -22, 31, 14, 23, -56, -18, -24, 127, 22, 25, -2486, -27, -27, -189, 34, 28, 103, -44, -30, -77, 58, 33, 64, -82, -36, -57, 128, 40, 54, -258, -46, -52, 2486, 53, 51, 380, -62, -51, -191, 76, 53, 134, -97 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
It is also the nearest integer to sinc(x)^(-1) function.
LINKS
Wikipedia, Sinc function
EXAMPLE
For n=3, 3/sin(3) = 21.25..., therefore a(3) = 21.
MATHEMATICA
Table[Round[n/Sin[n]], {n, 1, 100}]
PROG
(PARI) a(n) = round(n/sin(n)); \\ Michel Marcus, Nov 20 2022
CROSSREFS
Cf. A046947 (Values for n where abs(a(n))/n has records).
Sequence in context: A360980 A122509 A024230 * A105666 A058261 A298822
KEYWORD
sign,look
AUTHOR
Bence Bernáth, Nov 20 2022
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 18 18:14 EDT 2024. Contains 373486 sequences. (Running on oeis4.)