OFFSET
0,3
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..10000
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
KEYWORD
nonn,changed
AUTHOR
Reinhard Zumkeller, May 27 2008
EXTENSIONS
0 added by Mick Purcell (mickpurcell(AT)gmail.com), Oct 05 2009
STATUS
approved