A049473 Nearest integer to n/sqrt(2).
0, 1, 1, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9, 10, 11, 11, 12, 13, 13, 14, 15, 16, 16, 17, 18, 18, 19, 20, 21, 21, 22, 23, 23, 24, 25, 25, 26, 27, 28, 28, 29, 30, 30, 31, 32, 33, 33, 34, 35, 35, 36, 37, 37, 38, 39, 40, 40, 41, 42, 42, 43, 44, 45, 45, 46, 47, 47
Offset: 0
Keywords
Links
- G. C. Greubel, Table of n, a(n) for n = 0..10000
Crossrefs
Cf. A091087.
Programs
-
Magma
[0] cat [Round(n/Sqrt(2)): n in [1..100]]; // G. C. Greubel, Jan 27 2018
-
Mathematica
Round[Range[0,70]/Sqrt[2]] (* Harvey P. Dale, Feb 17 2015 *)
-
PARI
a(n)=round(n/sqrt(2)) \\ Charles R Greathouse IV, Sep 02 2015
Comments