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.

A140758 a(n) = floor(n*Pi/2).

Original entry on oeis.org

0, 1, 3, 4, 6, 7, 9, 10, 12, 14, 15, 17, 18, 20, 21, 23, 25, 26, 28, 29, 31, 32, 34, 36, 37, 39, 40, 42, 43, 45, 47, 48, 50, 51, 53, 54, 56, 58, 59, 61, 62, 64, 65, 67, 69, 70, 72, 73, 75, 76, 78, 80, 81, 83, 84, 86, 87, 89, 91, 92, 94, 95, 97, 98, 100, 102, 103, 105
Offset: 0

Views

Author

Reinhard Zumkeller, May 27 2008

Keywords

Comments

Beatty sequence for Pi/2; complement of A108589; not the same as A093610: a(23)=36 <> A093610(23)=35.

Examples

			For n = 5, 5*(Pi/2) approximately equals 7.854, and floor(7.854) = 7.
		

Crossrefs

Programs

  • Magma
    R:= RealField(40); [Floor(n*Pi(R)/2): n in [0..80]]; // G. C. Greubel, Oct 21 2023
    
  • Mathematica
    Floor[Pi*Range[0,80]/2] (* G. C. Greubel, Oct 21 2023 *)
  • Python
    import math
    x=0
    while x < 36001:
        y = math.radians(x)
        z = math.trunc(y)
        print(z, end=", ")
        x += 90
    # Mick Purcell (mickpurcell(AT)gmail.com), Oct 05 2009
    
  • SageMath
    [floor(n*pi/2) for n in range(81)] # G. C. Greubel, Oct 21 2023

Extensions

0 added by Mick Purcell (mickpurcell(AT)gmail.com), Oct 05 2009