Hy!

My younger brother got an assignment and asked me for help. The problem goes:

Find all the four digit numbers whose sum of all digits lies on the interval <12,16>.

It's hardly a problem to solve it numerically, but does anybody know an analytical solution?