I'm new to fractional Sobolev spaces and I'm curious about the regularity of some simple functions like e.$\,$g. step functions in order to understand these spaces better.
In more detail, for $\Omega = [-1,1]^n \subseteq \mathbb{R^n}$ and $A = [-\frac{1}{2},\frac{1}{2}]^n\subseteq \Omega$ consider the function $$ \begin{align} f \colon \ \Omega & \longrightarrow \mathbb{R} \\ x & \longmapsto \begin{cases} 1 & \text{ for } x \in A \\ 0 & \text{ for } x \notin A\text{.}\end{cases} \end{align} $$ For which $s \in [0,1]$ does $f$ have a finite Sobolev-Slobodeckij norm? The norm that is meant here is defined by $$ \Vert f\Vert_{s}^2 := \int_\Omega \int_\Omega \frac{\vert f(x) - f(y)\vert^2}{\Vert x-y\Vert^{2s+n}} \, \mathrm{d}x \, \mathrm{d}y\text{.} $$
Is there a way to determine the value of the integral analytically in dependence of $n$ and $s$? Or can one at least easily determine those $s$ for which this integral would be finite? Can it at least be done for $n=2$?
So far I tried the simple case $n=1$ for which I get that $s\in [0,\frac{1}{2})$ has to be fulfilled. I expect that to be the case for any $n$ but at the moment I'm not quite sure since I did not prove it. For $n=2$ I would try to integrate by hand but with my approach it's about to become a rather long calculation. Is there maybe an elegant way to do it? I don't mind if $A$ is replaced by another set like for example a scaled $n$-Sphere or some simplex.