Number of integral solutions of...

mathdaemon

New member
Joined
Dec 26, 2012
Messages
35
Hello

x+2y+3z=30
What is the no. of integral solutions of this equation?

I know how to do the x+y+z=30(Using stars and bars) but this is new to me.

Please help
 
Hello

x+2y+3z=30
What is the no. of integral solutions of this equation?

I know how to do the x+y+z=30(Using stars and bars) but this is new to me.

Please help
I do not see an easy way to do this. If z=10, then only x=y=0, z=10 works.
If z=9 that leaves 3 left over. So y can be 0 or 1 (with the correct value of x). So 2 results.
If z=8 that leaves 6 left over. So y can be 0, 1, 2 or 3. So 4 more results.
If z=7 that leaves 9 left over. So y can be 0,1,2,3 or 4. Add on 5 more results.
...
If z=1 that leaves 27 left over. So y can be 0,1,2...13. Add on 14 results.
If z=0 that leaves 30 left over. So y can be 0,1,2,...15. !6 more results.
 
What exactly do you by an integer solution?

\(\displaystyle (-12,~15,~4)\) is a solution.
Why would I think (ok, bad choice of a word) that x,y and z had to be positive?
 
Why would I think (ok, bad choice of a word) that x,y and z had to be positive?

@Jomo, Why did you think that I was addressing you? I was not.

Who did quote at the top of the posting? It had nothing to do with you.

I would have quoted your post if you were involved.
 
Hello

x+2y+3z=30
What is the no. of integral solutions of this equation?

I know how to do the x+y+z=30(Using stars and bars) but this is new to me.

Please help

Assuming that you meant integer solutions, since
a x + b y + c z + d = 0
is the general equation of a plane and since the plane is infinite in extent, there are an infinite number of solutions. That is let
z = m
y = n
m and n from the integers and
x = 30 - 2n - 3 m
then
x + 2y + 3z = 30
 
AH AH: why did you use 0 then?:confused:
0 is not considered a positive integer (unless a change was recently made!)
You did not get the word that 0 is now positive? You need to get out more often.
 
@Jomo, Why did you think that I was addressing you? I was not.

Who did quote at the top of the posting? It had nothing to do with you.

I would have quoted your post if you were involved.
pka, you did not address me at all. When I saw your solution I realized that you can have the variables take on negative values and I commented that I did not see that for some unknown reason.
 
Well, no matter how we cook it, there are 61 solutions
if x,y,z are integers > 0.
1: 1,1,9
2: 1,4,7
3: 1,7,5
....
59: 22,1,2
60: 23,2,1
61: 25,1,1
You mean 61 positive integer solutions I presume. There are infinite integer solutions.
 
Yes; I did specify "if x,y,z are integers > 0".
Sometimes I'm blind in one eye and can't see out of the other. Other times, well it's just another case of me sticking my big foot in my mouth. I'm not sure whether this time it might be a combination of the two. Please, pay it no mind. pretty please
 
Sometimes I'm blind in one eye and can't see out of the other. Other times, well it's just another case of me sticking my big foot in my mouth. I'm not sure whether this time it might be a combination of the two. Please, pay it no mind. pretty please

Be careful - he might make you watch 5 hockey games, continuous one-after-the-other, as a penance........
 
Top