OFFSET
1,1
COMMENTS
The equidistribution theorem states that n*sqrt(2) is equidistributed modulo 1, therefore lim_{n->infinity} a(n)/n = 5.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
EXAMPLE
24 is in the list because sqrt(2)*24 = 33.94 which is within 0.1 of an integer.
MAPLE
filter:= proc(n) local m;
m:= floor(n*sqrt(2));
2*n^2 < (m+1/10)^2 or 2*n^2 > (m+9/10)^2
end proc:
select(filter, [$1..1000]); # Robert Israel, Oct 14 2016
MATHEMATICA
Select[Range[300], Abs[Sqrt[2]*# - If[Sqrt[2]*# - Floor[Sqrt[2]*# ] < 1/2, Floor[Sqrt[2]*# ], Ceiling[Sqrt[2]*# ]]] < 0.1 &]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ben Paul Thurston, Dec 15 2007
EXTENSIONS
Edited and extended by Stefan Steinerberger, Dec 16 2007
STATUS
approved