cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A358520 Nearest integer to n/sin(n).

Original entry on oeis.org

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

Views

Author

Bence BernĂ¡th, Nov 20 2022

Keywords

Comments

It is also the nearest integer to sinc(x)^(-1) function.

Examples

			For n=3, 3/sin(3) = 21.25..., therefore a(3) = 21.
		

Crossrefs

Cf. A046947 (Values for n where abs(a(n))/n has records).

Programs

  • Mathematica
    Table[Round[n/Sin[n]], {n, 1, 100}]
  • PARI
    a(n) = round(n/sin(n)); \\ Michel Marcus, Nov 20 2022