The off-diagonal term of the 1-D Bose-Hubbard model is : $K=\sum_l a_l^\dagger a_{l+1}+a_{l+1}^\dagger a_l$.
We can diagonalize it by introducing the Fourier transformation:$a_l=\frac {1}{\sqrt{N}}\sum_k e^{ikl}a_k$.
Then the Hamiltonian can be written as: $K=2\sum_k a_k^\dagger a_k \cos k$, which means the eigenenergies are $E_k=2\cos k$.
However, I have a lot of questions about this transformation:
Suppose the largest occupation number in each site is n-1, then the original occupation representaion will have $n^N$ states, written as : $\{|n_1,n_2,\dots,n_i,\dots,n_N \rangle \}$,$n_i=0,1,\dots,n-1$. So we can know that the dimension of matrix of this Hamiltonian is $n^N\times n^N$ and it will have $n^N$ eigen energies after diagonalization. Why does the dimension of the Hamiltonain becomes N after Fourier transformation since the summation of k takes form 1 to N.
What's the tranformation between the original states and the states after Fourier transformation? We know that the original representation is the occupation number representation in real space and the latter representation is the occupation number representation in momentum space. What's the largest occupation number in momentum space and what's the relation between the states in these two representations?
I cannot find any explanations in textbooks. There are only the Fourier transformation of the operators when introducing the diagonalization of Hamitonians in textbooks without any explanations about the transform of the states. Maybe you can give me some references if you think my question is too basic and can be found in some quantum mechanics books.
Thanks for your answers and sorry for the grammatical mistakes I may make.