OFFSET
1,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000 (terms 1..1000 from R. Zumkeller)
Eric Weisstein's World of Mathematics, Beatty Sequence
MATHEMATICA
Floor[Range[80](Sqrt[2]+1/2)] (* Harvey P. Dale, Mar 24 2011 *)
PROG
(PARI) for(n=1, 50, print1(floor(n*(sqrt(2)+1/2)), ", ")) \\ G. C. Greubel, Jan 27 2018
(Magma) [Floor(n*(Sqrt(2)+1/2)): n in [1..50]]; // G. C. Greubel, Jan 27 2018
(Python)
from math import isqrt
def A137803(n): return (n>>1)+(m:=isqrt(r:=n*n<<1))+(n&1)*int(r-m*(m+1)>=1) # Chai Wah Wu, Aug 03 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Feb 11 2008
STATUS
approved