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.

Showing 1-2 of 2 results.

A105665 a(n) = abs(floor(n/cos(n))).

Original entry on oeis.org

1, 5, 4, 7, 17, 6, 9, 55, 10, 12, 2485, 14, 14, 102, 20, 17, 62, 27, 19, 49, 39, 23, 44, 56, 25, 40, 93, 30, 39, 194, 33, 38, 2486, 41, 39, 282, 48, 39, 146, 60, 42, 106, 77, 44, 85, 107, 48, 75, 163, 51, 68, 320, 58, 66, 2485, 65, 63, 486, 77, 63, 237, 92, 63, 163, 116
Offset: 1

Views

Author

Zak Seidov, May 04 2005

Keywords

Crossrefs

Cf. A105666.

Programs

  • PARI
    a(n) = abs(floor(n/cos(n))); \\ Michel Marcus, Oct 09 2013

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
Showing 1-2 of 2 results.