A049472 a(n) = floor(n/sqrt(2)).
0, 0, 1, 2, 2, 3, 4, 4, 5, 6, 7, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 14, 15, 16, 16, 17, 18, 19, 19, 20, 21, 21, 22, 23, 24, 24, 25, 26, 26, 27, 28, 28, 29, 30, 31, 31, 32, 33, 33, 34, 35, 36, 36, 37, 38, 38, 39, 40, 41, 41, 42, 43, 43, 44, 45, 45, 46, 47
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..10000
- Robbert Fokkink, The Pell Tower and Ostronometry, arXiv:2309.01644 [math.CO], 2023.
- Index entries for sequences related to Beatty sequences
Programs
-
Haskell
a049472 = floor . (/ sqrt 2) . fromIntegral -- Reinhard Zumkeller, Jul 04 2015
-
Magma
[Floor(n/Sqrt(2)): n in [0..70] ]; // Vincenzo Librandi, Aug 23 2011
-
Maple
A049472:=n->floor(n/sqrt(2)): seq(A049472(n), n=0..100); # Wesley Ivan Hurt, Jun 25 2016
-
Mathematica
Floor[Range[0,70]/Sqrt[2]] (* Harvey P. Dale, Aug 22 2011 *)
-
PARI
a(n)=sqrtint(n^2\2) \\ Charles R Greathouse IV, Sep 02 2015
Comments