The number of Odd integral solutions to a multi-variable, linear equation
Q) Find the number of solutions in odd positive integers to:
x1+x2+x3+.....+xr=N
SOLn
FIRSTLY:
Note that all xi would have odd solutions iff N−r=even
This is actually trivial: as we have odd+odd=even and even+odd=odd we can add odd numbers an even number of times to get an even number. and add them odd number of times to get odd numbers. in short: N=odd⟹r=odd and N=even⟹r=even in both cases N−r=even
So, to the solution:
I don't know if this is possible to prove by multinomial theorem, but simple application of stars and bars(or in this case, the binary set of 0's and 1's) work:
I am going to do a brief explaining to those who aren't well aware of this method
The idea is to create a set which has a correspondance with the solution set:
among the different arrangements,each type of arrangement of the numbers in the
binary set corresponds to a solution.
Example: if we had to find the total number of positive integral solutions (indefinite as to odd or even) to a+b+c=7
We would create a set with 7 one's and 3−1=2 zeroes as partitions.
For a more visual explanation: one arrangement of our set may look like:
two 0’s, seven 1’s110101111
and more importantly: this set will correspond to a the solution triple (2,1,4)
thus, different arrangements would correspond to different solution sets, and thus we are reduced to finding the number of different arrangements of the 0′s and 1′s in our binary element set.
Basically this is the stars and bars principle
In this method: we use r−1zeroes as partitions between the r numbers and each 1 represents....well each 1 . So, we have None's and r−1zeroes.
Now, since the least odd positive integer is 1, we, at first separate r1′s because they would always be included in our binary set.
after addition of r fixed 1′s, we have our set looking like:
r-1 zeroes and r ones,N-r ones1010101.....101,111....111
By our previous arguements, N−r is even. SO:
We group the N−rones in sets of two i.e : 2N−rones11,11,11.....,11
Writing 2N−r=a and noting that each a corresponds to a numerical value of 2 . and since we already have r ones fixed for each variable, the addition of any number of 2′s or, in this case, a′s would result in the formation of odd numbers (even+odd=odd)
∴The required no. of solutions in odd positive integers for the given equation is
the no. arrangements of2N−r a’s and (r−1) zeroes and r fixed ones
This is the permutation of a total 2N−r+(r−1)=2N+r−2 objects, out of which: 2N−r objects are of one kind(a′s), and (r−1) other objects of the same kind (zeroes).
This is equal to: (r−1)!(2N−r)!(2N+r−2)!
OR:
(r−12N+r−2)
An example to remove all doubts:
Find the odd positive solutions in a,b,c to the equation:
a+b+c=7
In This case: we have r=3, N=7⟹N−r=7−3=4=even .
therefore, solutions are actually possible.
Next step, is to create the set with 2 zeroes and 7 ones:
S=2 zeroes and 3 ones, 4 ones10101,1111
next, write the 4 ones as two groups of 2: two ’11’s or 2 ’a’s11,11
∴ We have to find the no. of arrangements of 2 zeroes and 2a's
This discussion board is a place to discuss our Daily Challenges and the math and science
related to those challenges. Explanations are more than just a solution — they should
explain the steps and thinking strategies that you used to obtain the solution. Comments
should further the discussion of math and science.
When posting on Brilliant:
Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.
Markdown
Appears as
*italics* or _italics_
italics
**bold** or __bold__
bold
- bulleted - list
bulleted
list
1. numbered 2. list
numbered
list
Note: you must add a full line of space before and after lists for them to show up correctly
obviously.. but the main intention of my post was to explain this using simple logic, which everyone would understand. for that very reason, i even fairly explained the stars and bars method in my post
I would see it as trying to arrange N balls in r buckets, where each bucket has an odd number of balls.
Clearly, none of these buckets can be empty since 0 is an even number. So each bucket contains at least one ball. So we throw one ball into each bucket, leaving us with N-r balls to distribute. Now since the number of balls in each bucket can't be even, we tie the N-r balls into pairs. Now we have (N-r)/2 blocks to distribute onto r buckets.
There are (r-1 + [(N-r)/2] ) C (r-1) ways of doing this. C stands for combination.
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
Variable replacement would do our job put : . 2yi+1=xi
Our equation becomes :
2(y1+y2+.........+yr)=n−r
Simplifying a little bit
y1+y2+..............yr=2n−r
Now the work is very simple apply multinomial theorom to get :
No. if integral solutions =(r−1r+2n−r−1)=(r−12n+r−2)
So I believe multinomial theorom is a better way to analyze things.(It's my favourite theorom in combinatorics).
Log in to reply
ahh..well yes... i prefer using a more visual explanation to things.. thus, the method :D
It would be much simplier if we use generating functions
Log in to reply
obviously.. but the main intention of my post was to explain this using simple logic, which everyone would understand. for that very reason, i even fairly explained the stars and bars method in my post
Log in to reply
yes,you are right,everyone must know the basic....the stars and bars method is really a classic method
I would see it as trying to arrange N balls in r buckets, where each bucket has an odd number of balls. Clearly, none of these buckets can be empty since 0 is an even number. So each bucket contains at least one ball. So we throw one ball into each bucket, leaving us with N-r balls to distribute. Now since the number of balls in each bucket can't be even, we tie the N-r balls into pairs. Now we have (N-r)/2 blocks to distribute onto r buckets. There are (r-1 + [(N-r)/2] ) C (r-1) ways of doing this. C stands for combination.
Not really sure about the last line though
Sorry I don't know how to use latex.
Log in to reply
this is exactly what i tried to say :D