A358520 Nearest integer to n/sin(n).
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
Offset: 1
Examples
For n=3, 3/sin(3) = 21.25..., therefore a(3) = 21.
Links
- Bence BernĂ¡th, Table of n, a(n) for n = 1..10000
- Wikipedia, Sinc function
Programs
-
Mathematica
Table[Round[n/Sin[n]], {n, 1, 100}]
-
PARI
a(n) = round(n/sin(n)); \\ Michel Marcus, Nov 20 2022
Comments