Math Problem - 3

ezh

Member
Joined
Feb 5, 2008
Messages
12
I'll do problem 3. (I hope you don't mind, nitro :))

Find the number of ordered quadruples (a, b, c, d) of positive odd integers that satisfy a + b + c + d = 98.

Hint: think of different ways to represent the quadruples.
 
Last edited:
spoiler:
Zero. The sum of 4 positive odd numbers is always divisible by 4, but 98 is not divisible by 4.

OOPS! Forget it... Yes, I was wrong. I was using the logic: an odd number gives a remainder of 1 when you divide it by 2, so if you add 4 odds, then the remainders sum to 4. I forgot that the portions that got divided by 2 will sometimes result in odd rather than even.
 
Last edited:
rjohnson: 95+1+1+1=98. Your logic doesn't work, there's at least one.

Let a=2l-1, b=2m-1, c=2n-1, d=2o-1, where l, m, n, and o are positive integers. We want a+b+c+d=2(l+m+n+o)-4=98 -> l+m+n+o=51.

Just to simplify the explanation, I'm going to use 11 instead of 51 for the time being. Let's say we have 11 objects lined up:

X X X X X X X X X X X

we want to divide this into 4 parts, none of which may be empty. We'll take the number of objects in the leftmost section to be the value of l, the next to be m, then n, then o. So if we choose 3 places to put dividers, that will give us our division. For instance, we can put dividers like

X X | X X X X | X | X X X X

giving l=2, m=4, n=1, and o=4. There are 10 places to put dividers (we can't put one at the left or right end), so there's 10 choose 3 partitions = 10*9*8/3*2*1=120 partitions

In the original problem, we want to divide 51 into 4 positive integers, so there's 50 choose 3 = 50*49*48/3*2*1 = 50*49*8=19600 such quadruples.

And thank you for saying "ordered" =P
 
Last edited:
yes now i see that this is actually a repetitive permutation (can someone correct me about that topic's name) problem
 
spoiler:
Zero. The sum of 4 positive odd numbers is always divisible by 4, but 98 is not divisible by 4.

Here's one possible quadruple: (1, 1, 1, 95). And 1 + 1 + 1 + 3 is divisible by four.

I was gonna give the EXACT same counter example haha! Anyway, first i would eliminate the ugly condition of it being odd numbers by expressing each as 2n-1 (we need n_i to be >=1), then collecting the terms to yield a nicer equation where I have to find the n's, which then gives me

98=2(sum(n_i)) - 4
=> sum(n_i) = 51
and thats trivial to find the number of such n_i's . Should be 50 choose 3 ?

nice problem. I initially made the mistake in making each x to be 2n+1. Leads to subtle issues because then you get 47=sum(n_i), but n_i can also be 0, so on top of the 46C3 possibilities you also have to add more because the n's can be 0's. I think. Im confused :)
 
Last edited:
Yep, Tim Reynolds got it. My solution is very similar, except instead of a = 2l -1, I did a = 2l + 1. Badmephisto, that's not a mistake. It still works, but the balls and dividers analogy is slightly different - the way I prefer it.
Basically, you have 3 dividers and 47 balls; and the dividers can go anywhere. So you have 50 objects total, and 3 of them are dividers. Bam: 50 choose 3.

Here's my solution:

Part 1
This solution is based on the idea that if you can make a one-to-one correspondence between the elements of one set and the elements of another, then the two sets are the same size. Example: we have two sets {1, 2, 3, 4, 5} and {A, B, C, D, E}. For every number X in set 1, there's the Xth letter of the alphabet in set 2, and for every letter of the alphabet, there's the corresponding number in set 1. That's a 1-to-1 correspondence, so set 1 and set 2 are the same size.

Now the solution begins. The non-negative integers {0, 1, 2, 3, ...} are easier to deal with than the odd positive integers {1, 3, 5, 7, ...}, so lets do some correspondence magic.

Let a' = (a - 1)/2, b' = (b - 1)/2, c' = (c - 1)/2, and d' = (d - 1)/2. Since a is an odd positive integer, (a - 1) must be an even non-negative integer, and (a - 1)/2 must be a non-negative integer. So a', b', c', and d' are all non-negative integers.

If we manipulate the original equation a + b + c + d = 98 to use a', b', c', and d', we get:
a + b + c + d = 98
a - 1 + b - 1 + c - 1 + d - 1 = 94
(a - 1)/2 + (b - 1)/2 + (c - 1)/2 + (d - 1)/2 = 94/2
a' + b' + c' + d' = 47

For every quadruple (a, b, c, d) that satisfies a+b+c+d=98, there is one corresponding quadruple (a', b', c', d') that satisfies a'+b'+c'+d'=47, and vice versa. So, there's a one-to-one relationship between the original quadruples and the modified quadruples, and now we can count the (a', b', c', d') quadruples instead.

Now our problem is: find the number of ordered quadruples (a', b', c', d') of non-negative integers that satisfy a' + b' + c' + d' = 47. What we're trying to do now is like divide 47 balls between four boxes. Each box (call the boxes A, B, C, and D) we give a certain number of balls, totaling 47 (a', b', c', and d'). From this idea we can create a more extraordinary correspondence.

Part 2
Imagine all the 47 balls in a line.
***********************************************

Now if we place 3 dividers anywhere in the line:
****|******||*************************************

We can say that all of the balls to the left of the first divider go into box A, all of the balls between the first and second dividers go into box B, all of the balls between the second and third dividers go into box C, and all of the balls to the right of the third divider go into box D. In the above example, there'd be 4 balls in box A, 6 balls in box B, 0 balls in box C, and 37 balls in box D.

Here's another example:
|||***********************************************
0 balls in A, 0 balls in B, 0 balls in C, 47 balls in D. (0, 0, 0, 47)

Or how about:
**********|**********|**********|*****************
10 balls in A, 10 balls in B, 10 balls in C, 17 balls in D. (10, 10, 10, 17)

For every arrangement of 47 balls and 3 dividers, there's one corresponding quadruple, and for every quadruple, there is one arrangement of balls and dividers. We have a one-to-one correspondence, and now we can just count the arrangements of balls and dividers.

In all of these arrangements, there's 50 objects in a line; three of them are dividers, and the rest are balls. Pick any three of the 50, and we have a complete arrangement of dividers and balls, exactly one quadruple (a', b', c', d'), and exactly one quadruple (a, b, c, d).

The number of ways to pick 3 objects out of 50, if we don't care about the order we pick the objects in, is 50 * 49 * 48 / (3 * 2 * 1). (This is also known as 50 choose 3, or, on graphing calculators, 50 nCr 3.) So the number of quadruples is 19600.
 
Last edited:
ezh you made the divider an object just like the numbers are objects! that immidiately yields 50C3. hahaha genius why didn't I think of that :) ok it all makes sense now. I prefer that way as well :p
 
Should we keep all of these in the same thread? Maybe in groups of five: Math Problems 3-7, Math Problems 11-15, etc. I notice we go through them pretty fast. And I, like nitro, have a ridiculous amount of cool/fun/interesting math problems, so maybe it'd be better to group them somehow.

Anyone want to post problem 4?
 
Back
Top