I want to find out, how many ways I can produce an average 4.6 of 13 numbers, when I have only numbers {1,2,3,4,5}.
I thought, that it could be done by generating functions, but since my knowledge on them isn't very deep yet, I'm a little lost. Also I have a hard time dealing with the average not being integer.
13 numbers with average 4.6 would need to add up to 59.8; so you can't get that by choosing from the set of integers ${1,2,3,4,5}$. If you had solvable instance of this problem, for instance, 15 numbers with an average of 4.6, you would then be asking for the number of ways of choosing 15 numbers from ${1,2,3,4,5}$ with a sum of 69. A question like that can be answered by looking at the generating function $$F(x,t)\equiv\frac{1}{(1-tx)(1-tx^2)(1-tx^3)(1-tx^4)(1-tx^5)}$$ where the coefficient of the term $t^{15}x^{69}$ would be the answer you are looking for: $$ {\rm{number \; of \; ways}} = \left. \frac{1}{15!69!} \frac{\partial^{84} F}{\partial x^{69} \partial t^{15}}\right|_{x=0,t=0}$$