For $\epsilon>0$ and a given $n$, define $$S_\epsilon=\bigcup_{x\in\mathbb{Z}^n}B_\epsilon(x)\subset\mathbb{R}^n$$ where $B_\epsilon(x)$ is the open ball of radius $\epsilon$ around the point $x$ in $\mathbb{R}^n$. Essentially, $S_\epsilon$ is the set of points in $\mathbb{R}^n$ that are "close enough" to (within $\epsilon$ of) an integer point. Define $f:\mathbb{R}^n\times\mathbb{R}_{>0}\to\mathbb{R}$ with $$f(x,\epsilon)=\inf\{\delta\geq1\mid\delta x\in S_\epsilon\}$$Note $\delta x=(\delta x_1,\dots,\delta x_n)$. Intuitively, we see this function is well defined as every point is "close enough" to a rational point, which can itself be multiplied to an integer. I have two main questions surrounding this function:
1) For what values of $\epsilon$ is this function continuous? Clearly, if $\epsilon$ is large enough, depending on the dimention, then $f\equiv 1$ everywhere. Can $\epsilon$ be made smaller and preserve continuity?
2) Is $f$ smooth, either with respect to $x$ or $\epsilon$? This one seems a little bit more hopeless, as the function essentially has "hills" which plateau on $S_\epsilon$. If we were looking at closed balls around integer points instead of open, would that change anything with respect to smoothness?
While those two questions are the main focus of this post, I would greatly appreciate any additional remarks about $f$. Thank you!
The answer to both question is no. The point $(\frac{ \epsilon} {\sqrt n}, \dots, \frac{ \epsilon} { \sqrt n}, \epsilon) $ for $ \epsilon<\frac{ \sqrt n} {2}$ is a counterexample