Find the number of ordered triples ( x , y , z ) when positive integers x , y and z satisfy the following equation: x + y + z = 7 .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The simplest approach to solve this problem is to use stars & bars technique. The desired sum 7 can be represented using 7 stars. Each combination of x , y and z that adds up to 7 can be represented by putting two 'bar' symbols in empty places between the stars. There are 6 places between the 7 stars and you need to choose 2 of them where the bars will be put. There is ( 2 6 ) = 1 5 ways of doing this and thus 1 5 distinct integer triples that add up to 7 .
no. of positive integer solution = 6 C 2 = 4 ! 2 ! 6 ! = 1 5
Problem Loading...
Note Loading...
Set Loading...
When x=1, there are 5 solutions for positive y, z such that y+z=6, When x=2, there are 4 solutions for positive y, z such that y+z=5, and so on to x=5 So the answer is 5+4+3+2+1=15