Let $Q(x_1,...,x_n)=\sum_{i,j=1}^na_{ij}x_ix_j$ be a positive-definite quadratic form with $a_{ij}\in\Bbb{Z}$.
In another question I ask about the following claim:
There is some $L>0$ (depending only on $Q$) such that for every $m\in \Bbb{N}$ there are some $x_1,....,x_n\in\Bbb{Z}$ with $q(x_1,...,x_n)\in[m-L,m+L]$.
I thought this was true for $n\geq 2$, but then someone answer me saying that this is true only for $n\geq 3$ and that this has to do with modular forms of wheight $n/2$ and Eisenstein series, "whose coefficients depend only on congruence conditions at a finite number of primes".
I know nothing about modular forms and this seems too interesting to be left behind, so I've made this post to try to get this straight.
I've read this pdf by Johnathan Hanke that if $r_Q(m)$ is the number of representations for $m$ by $Q$, then one might want to study the function $$\Theta_Q(z)=\sum_{m\geq 0}r_Q(m)e^{2\pi imz}.$$
He says that it "turns out" that there is a congruence subgroup $\Gamma_0(N)$ and a character $\chi_Q$ on $(\Bbb{Z}/N\Bbb{Z})^\times$ such that $$\Theta_Q(\gamma z)=\chi_Q(d)(cz+d)^{n/2}\Theta_Q(z),\text{ for each }\gamma z=\frac{az+b}{cz+d}\in \Gamma_0(N)$$
Hanke says that we can write $\Theta_Q(z)$ as $\Theta_Q(z)=E(z)+f(z)$ where $E(z)$ is an Eisenstein series and $f(z)$ is a cusp form.
This is what the guy who answered me was talking about, right?
My questions are:
What makes $n=3$ special?
How do I find these "congruence conditions on a finite number of primes"?
If I have an explicit $Q$, is it possible to find these congruent conditions explicitly?
In that case, can I find $L$ excplicitly? An estimate, at least?
Is this kind of thing already done in some book or material?
I'm really trying to understand this in detail, but I still have no idea how to begin to work it out.

Begin with these, positive ternaries with only diagonal terms that are "regular." That means that the numbers represented are given by a finite set of congruences; usually we say the numbers not represented.
I don't expect you need modular forms; suggest you look at most items I put at
http://zakuski.math.utsa.edu/~kap/
In particular, I think you are asking about this, Duke and Schulze-Pillot: