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-7 of 7 results.

A000493 a(n) = floor(sin(n)).

Original entry on oeis.org

0, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0, -1, -1, -1, 0, 0
Offset: 0

Views

Author

Keywords

Crossrefs

Cf. A032615, A126564 (even bisection), A000480 (floor cos(n)).

Programs

  • Magma
    [Floor(Sin(n)): n in [0..100]]; // Vincenzo Librandi, Jun 15 2015
  • Maple
    f := n->floor(evalf(sin(n)));
  • Mathematica
    f[ n_ ] := Floor[ N[ Sin[ n ] ] ]
    Floor[Sin[Range[0,90]]] (* Harvey P. Dale, Dec 04 2012 *)

Formula

a(n) = -(A032615(n) mod 2). - Robert Israel, Jun 14 2015

A070747 a(n) = signum(sin(n)), where signum=A057427.

Original entry on oeis.org

0, 1, 1, 1, -1, -1, -1, 1, 1, 1, -1, -1, -1, 1, 1, 1, -1, -1, -1, 1, 1, 1, -1, -1, -1, -1, 1, 1, 1, -1, -1, -1, 1, 1, 1, -1, -1, -1, 1, 1, 1, -1, -1, -1, 1, 1, 1, 1, -1, -1, -1, 1, 1, 1, -1, -1, -1, 1, 1, 1, -1, -1, -1, 1, 1, 1, -1, -1, -1, -1, 1, 1
Offset: 0

Views

Author

Reinhard Zumkeller, May 04 2002

Keywords

Comments

a(n) <> 0 for n>0.

Examples

			For n=10: sin(10) = sin(10-2*Pi) < 0, as Pi < 10-2*Pi < 2*Pi, therefore a(10) = signum(sin(10)) = -1.
		

Crossrefs

Programs

Formula

a(n) = (-1)^A032615(n) for n>0. - Michel Marcus, Mar 20 2021

A062300 a(n) = floor(cosec(Pi/(n+1))).

Original entry on oeis.org

1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 20, 20, 20, 21, 21, 21, 21, 22, 22, 22, 23, 23, 23, 24, 24, 24, 25, 25
Offset: 1

Views

Author

Amarnath Murthy, Jun 19 2001

Keywords

Comments

cosec = 1/sin. - Kevin Ryde observes that this sequences is up to the offset almost identical to A032615(n) = floor(n/Pi): the values differ after n=6 for the first time again at n=80143857. Robert Israel shows that we can nonetheless expect infinitely many differences. See the posts on the SeqFan list for details. - M. F. Hasler, Oct 19 2016

Examples

			a(99) = 31 as cosec{Pi/100} =31.8362252090976229556628738787913...
		

Crossrefs

Cf. A032615.

Programs

  • PARI
    v=vector(150,n,floor(1/sin(Pi/(n+1)))) \\ Warning: for n=5 this may yield an incorrect value of 1 instead of a(n)=2, depending on default(realprecision).
    
  • PARI
    { default(realprecision, 50); for (n=1, 1000, write("b062300.txt", n, " ", floor(1/sin(Pi/(n+1)))) ) } \\ Harry J. Smith, Aug 04 2009
    
  • PARI
    A062300(n,e=.1^precision(.1))=1\sin(Pi/(n+1+e)) \\ M. F. Hasler, Oct 19 2016

Extensions

More terms from Jason Earls, Jun 22 2001

A081550 Decimal expansion of Sum_(1/(2^q-1)) with the summation extending over all pairs of integers gcd(p,q) = 1, 0 < p/q < Pi.

Original entry on oeis.org

6, 0, 0, 7, 8, 7, 4, 0, 1, 5, 7, 4, 8, 0, 3, 1, 4, 9, 6, 0, 6, 2, 9, 9, 2, 1, 2, 5, 9, 8, 4, 2, 5, 1, 8, 7, 1, 4, 4, 9, 1, 9, 9, 6, 5, 2, 9, 2, 6, 6, 9, 7, 1, 6, 8, 8, 3, 2, 6, 0, 7, 6, 1, 7, 7, 6, 7, 4, 3, 2, 8, 6, 9, 3, 7, 1, 5, 0, 5, 7, 5, 9, 4, 2, 2, 6, 1, 5, 0, 8, 9, 0, 4, 8, 0, 9, 4, 5, 9, 1, 5, 6, 9, 0, 1
Offset: 1

Views

Author

Benoit Cloitre, Apr 21 2003

Keywords

Examples

			6.007874015...
		

Crossrefs

Cf. A000796 (Pi).

Programs

  • Mathematica
    With[{digmax = 120}, RealDigits[Sum[1/2^Floor[k/Pi], {k, 1, 20*digmax}], 10, digmax][[1]]] (* Amiram Eldar, May 25 2023 *)

Formula

Equals Sum_{k>=1} (1/2)^floor(k/Pi) = Sum_{k>=1} 1/2^A032615(k).

Extensions

Data corrected by Amiram Eldar, May 25 2023

A032616 a(n) = floor(n^2/Pi).

Original entry on oeis.org

0, 0, 1, 2, 5, 7, 11, 15, 20, 25, 31, 38, 45, 53, 62, 71, 81, 91, 103, 114, 127, 140, 154, 168, 183, 198, 215, 232, 249, 267, 286, 305, 325, 346, 367, 389, 412, 435, 459, 484, 509, 535, 561, 588, 616, 644, 673, 703, 733, 764, 795, 827, 860, 894
Offset: 0

Views

Author

Patrick De Geest, May 15 1998

Keywords

Crossrefs

Cf. A032615.

Programs

Formula

a(n) = A032615(n^2). - Michel Marcus, Jan 30 2022

A082964 a(n) = round(n/Pi), n divided by Pi rounded to the nearest integer.

Original entry on oeis.org

0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 13, 13, 13, 14, 14, 14, 15, 15, 15, 16, 16, 16, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 20, 20, 20, 21, 21, 21, 22, 22, 22, 23, 23, 23, 24, 24, 24, 25, 25, 25
Offset: 0

Views

Author

Cino Hilliard, May 27 2003

Keywords

Examples

			For n = 11, a(11) = (arctan(tan(11))-11)/Pi = -4;
For n = 12, a(12) = (arctan(tan(12))-12)/Pi = -4;
For n = 13, a(13) = (arctan(tan(13))-13)/Pi = -4;
For n = 14, a(14) = (arctan(tan(14))-14)/Pi = -4.
		

Crossrefs

Programs

  • PARI
    a(n) = round (n/Pi)

Extensions

Simplified NAME from Hugo Pfoertner, Jul 20 2023

A296357 a(n) = ceiling of n/Pi.

Original entry on oeis.org

1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 20, 20, 20, 21, 21, 21, 22, 22, 22, 22, 23, 23, 23, 24, 24, 24, 25, 25, 25, 26, 26, 26, 27, 27
Offset: 1

Views

Author

N. J. A. Sloane, Dec 15 2017

Keywords

Comments

The problem asks if a(n) is also equal to ceiling(cosec(Pi/n)) for n>3.
First differs from ceiling(cosec(Pi/n)) for n>3 at n=80143857 (Stadler, 2019; Velleman and Wagon, 2020). - Amiram Eldar, Nov 08 2020

References

  • Daniel J. Velleman and Stan Wagon, Bicycle or Unicycle?, MAA Press, 2020, pp. 32 and 192-194.

Crossrefs

Cf. A032615.

Programs

Showing 1-7 of 7 results.