login
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
OFFSET
1,2
COMMENTS
It is also the nearest integer to sinc(x)^(-1) function.
LINKS
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