Find the number of ordered triples of positive integers ( a , b , c ) such that a + b + c = 8 .
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.
Good approach using the Stars and Bars technique.
While it is often used for "non-negative integer solutions", we can often make slight tweaks to obtain what we want.
By the WIKI this would be 10ch8 after creating a bijection using 0's. How is it 7ch2. What are a' b' and c'?
Log in to reply
10C2 applies to the situation if a, b, c were greater than or equal to zero. The question given here says that a, b, c are positive i.e. greater than zero , thus not necessitating the equality to zero . So, as @Rishik Jain has solved, the equation is converted to a form concerning a', b', c' , where a', b', c' are each greater than or equal to zero . Now applying the bijection creation using 0's, we get 7C2.
Hope that clarifies your doubt! :-)
The question asks for ordered triplets: (1, 1, 6) and (6, 1, 1) are the same solution then. Leaving (1, 1, 6), (1, 2, 5), (1, 3, 4), (2, 2, 4), (2, 3, 3)? (If you allow (1, 6, 1) etc... There are indeed 21 solutions.)
Log in to reply
'Ordered' triples convey the fact that the order does matter. For example, if ordered triplets are asked then (2,3,5) is different from (3,2,5).
Log in to reply
Very much so!
Log in to reply
@Aniruddha Bhattacharjee – Aaaah my bad. I thought it was 'a triplet of numbers in order'
Did the same
This is another case of stars and bars, used for positive solutions
shouldnt it be 8c3
I got it after a little thinking, the key here is 'positive integers'. So you can't put two consecutive bars in between the stars and also you can't put any bar at the beginning. You have to put the bars in the empty spaces between stars. There are 7 empty spaces between 8 stars. You can put 2 bars (will act as 2 plus signs) in those spaces in 7C2 ways.
Shouldn't the last line have 7C2 and not 10C2?
Problem Loading...
Note Loading...
Set Loading...
Relevant wiki: Integer Equations - Stars and Bars
Since a , b , c ∈ Z + , a + b + c = 8 can be written as 1 + a ′ + 1 + b ′ + 1 + c ′ = 8 where a ′ , b ′ , c ′ ≥ 0 and are integers.
⇒ a ′ + b ′ + c ′ = 5 By Stars and Bars , the equation has ( 2 7 ) = 2 1 solutions.