A038126 a(n) = floor( sqrt(2*Pi)*n ) (a Beatty sequence).
0, 2, 5, 7, 10, 12, 15, 17, 20, 22, 25, 27, 30, 32, 35, 37, 40, 42, 45, 47, 50, 52, 55, 57, 60, 62, 65, 67, 70, 72, 75, 77, 80, 82, 85, 87, 90, 92, 95, 97, 100, 102, 105, 107, 110, 112, 115, 117, 120, 122, 125, 127, 130, 132, 135, 137, 140, 142, 145, 147, 150, 152, 155, 157
Offset: 0
Keywords
Links
- G. C. Greubel, Table of n, a(n) for n = 0..10000
- Eric Weisstein's World of Mathematics, Beatty Sequence.
- Index entries for sequences related to Beatty sequences.
Programs
-
Magma
R:= RealField(20); [Floor(n*Sqrt(2*Pi(R))): n in [0..100]]; // G. C. Greubel, Sep 08 2018
-
Mathematica
With[{c=Sqrt[2*Pi]},Floor[c*#]&/@Range[0,70]] (* Harvey P. Dale, Nov 14 2014 *)
-
PARI
vector(100, n, n--; floor(n*sqrt(2*Pi))) \\ G. C. Greubel, Sep 08 2018
Comments