I'm trying to understand a psychology study I've just read and I'm encountering a combinatorics problem that I can't solve and could use some help with.
There is a questionnaire that asks 5 questions, each of which can have values 1, 2, 3, 4, 5, 6, or 7. After answering each question, the values for each question are summed up to produce an aggregate score. Hence, the only possible final, aggregate scores subjects can receive are anywhere from 5 - 35.
QUESTION: How many unique sequences of answers can be generated from this?
For example, the aggregate score of 6 can be achieved in 5 ways:
(1,1,1,1,2)
(1,1,1,2,1)
(1,1,2,1,1)
(1,2,1,1,1)
(2,1,1,1,1)
I'm also curious how to solve the general problem of the following form. Given $n$ questions, each which can take on $k$ values, and after summing each of the answers to each question (an aggregate score), how do we determine how many unique sequences of answers can be generated?