Larz31 said:
Homework Statement
Find the number of solutions to the equation x + y + z + t = 16, where x, y, z, and t are:
i) odd integers
ii) even integers
Just one question, can x, y, z, and t be the same? If they
cannot be the same, then for odd x, y, z, t, there can only be one set of solution (1, 3, 5, 7). Then, you can start switching them a little bit, and come to the answer.
----------------------
If they
can be the same (and I suppose this is the case the problem wants us to do), then, here's my approach, require a little bit working. But, well, it works.
x + y + z + t = 16
Now, let M = x + y, and N = z + t, we have:
M + N = 16
This can be done easier, since it's the sum of
two numbers, instead of the original
four numbers.
Since the sum of two odd integers is even, we have: M, and N must be even. The minimum value for, x, y, z, and t is 1, so the minimum value for M, and N is 2. The maximum value for M, and N is 9 + 9 = 18, i.e, we have:
2 \leq M, N \leq 18
You'll have 7 ways to choose M, and N
(2, 14), (4, 12), (6, 10), (8, 8), (10, 6), (12, 4), (14, 2)
If M = 2, there'll be 1 way to choose x, and y: x = y = 1.
If M = 4, there'll be 2 ways: (1, 3), and (3, 1)
If M = 6, there'll be 3 ways.
M = 8, 4 ways.
M = 10, 5 ways
and M = 12, 4 ways.
M = 14, 3 ways.
Do the same for N.
Now, if M = 2, then N = 14, so there'll be 1 * 3 = 3 ways to choose x, y, z, t.
M = 4, N = 12, there'll be 2 * 4 = 8 ways.
M = 6, N = 10, there'll be 3 * 5 = 15 ways.
M = 8, N = 8, 4 * 4 = 16 ways.
M = 10, N = 6, there'll be 3 * 5 = 15 ways.
M = 12, N = 4, there'll be 2 * 4 = 8 ways.
M = 14, N = 2, there'll be 1 * 3 = 3 ways.
Sum all the above, and you'll have the answer.
3 + 8 + 15 + 16 + 15 + 8 + 3 = 68 ways.
Can you get it? :)
You can do exactly the same to the case, when x, y, z, and t are even.
I know the total number of solutions is 19 choose 3
It's a little bit large, I think. Are you sure that's the answer?