login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A140758 a(n) = floor(n*Pi/2). 9
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Beatty sequence for Pi/2; complement of A108589; not the same as A093610: a(23)=36 <> A093610(23)=35.
LINKS
Eric Weisstein's World of Mathematics, Beatty Sequence
EXAMPLE
For n = 5, 5*(Pi/2) approximately equals 7.854, and floor(7.854) = 7.
MATHEMATICA
Floor[Pi*Range[0, 80]/2] (* G. C. Greubel, Oct 21 2023 *)
PROG
(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
(Magma) R:= RealField(40); [Floor(n*Pi(R)/2): n in [0..80]]; // G. C. Greubel, Oct 21 2023
(SageMath) [floor(n*pi/2) for n in range(81)] # G. C. Greubel, Oct 21 2023
CROSSREFS
Sequence in context: A329923 A187342 A330143 * A292987 A352719 A187580
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, May 27 2008
EXTENSIONS
0 added by Mick Purcell (mickpurcell(AT)gmail.com), Oct 05 2009
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 1 23:54 EDT 2024. Contains 372178 sequences. (Running on oeis4.)