sign up I login
 advanced
refer a friend - earn nickels!!

Ask & Discuss Questions with Community & Experts

Moderation Team
 90 chars left    advanced
Ask iit jee aieee pet cbse icse state board community Community Discussion Question: No of integral soultions.
Forum Index -> Algebra like the article? email it to a friend.  
Author Message
vercitty (229)

Scorching goIITian

Olaaa!! Perrrfect answer. 39  [56 rates]

vercitty's Avatar

total posts: 244    
offline Offline

How do u find the "No of integral solutions of linear equations and inequations" ?


For equations like x1 + x2 + x3+....xr = n


 


I am super confused with this!!!!


3SmartCubes.com - IQ Test
    
little_genius (295)

Blazing goIITian

Olaaa!! Perrrfect answer. 53  [68 rates]

little_genius's Avatar

total posts: 353    
offline Offline
the number of integral solns for a1
is equal to the coeff of x^n in the expression
(x^a1 + x^(a1+1)+...+ x^b1)( x^a2+ .....+x^b2).......till n terms..
the abv series form a gp series ... and so we get terms like (1-x^r)/(1-x)...
also the coefficient of x^r in (1-x)^-n is (n+r-1)Cr........
so from these u can get the coefficient of x^n...

[url=http://www.signaturebar.com/][img]

B DESIGN
IIT GUWAHATI.
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
kaymant (1649)

Forum Expert Blazing goIITian

Olaaa!! Perrrfect answer. 309  [361 rates]

kaymant's Avatar

total posts: 458    
online Online

Consider first a special case: x1 + x2 = 10.


The idea is basically this: suppose you have 10 identical (indistinguishable) balls and two baskets A and B.  You want to distribute these 10 balls in the two baskets so that each basket can have any number of balls. How many ways can you do so? Or how many distributions exsist? 


Note that the baskets have names. So putting (say) 2 balls in A and 8 in B is not the same as putting 2 in B and 8 in A. (We are talking about ordered pairs).


Transform further the problem as follows: Lets put all the balls in a row:


 o o o o o o o o o o


We take a spearator: | . Wherever I put this separator among the balls, the situation will correspond to a way of distributing balls. The balls on the left will always go to bag A and to the right will always go to B. For instance,


o o o | o o o o o o o


corresponds to 3 ball in A and 7 in B. Similarly, the situation


| o o o o o o o o o o


correspond to no ball in A and 10 balls in B. Now we can easily see that the separator can be placed at 11 positions. And accordingly there are 11 ways of distribution of the balls: (0,10), (1,9), (2,8), (3,7), (4,6), (5,5), (6,4), (7,3),(8,2),(9,1),(10,0) where the first number corresponds to balls in A and second to balls in B.


Now, if we assign the number of balls in A to the variable x1 and the numbers of balls in B to x2, then, effectively we found out the number of non-negative integral solutions of  x1 + x2 = 10.


Now, consider the general problem: find the number of non-negative integral solution of the equation


 x1 + x2 + x3 + . . .+xk  =n


Here, arguing as before, we place the n balls in a row:


o o o o o o . . . . o


Since we want to partition in to k baskets, we require k-1 separators. Now, the question is effectively to find out how many ways of placing these identical separators are? That is not a very difficult business. Effectively, we have (n + k -1) objects (n balls and k-1 separators) out of which n are identical of one kind and the remaining (k-1) are identical of another kind. How many ways can we arrange them in a row. The answer is straightforward:


                                          


that is n+k-1Cn.


Hence, this must be the number of non-negative integral solution of the general equation.


http://kaymant.googlepages.com/
 this reply: 35 points  (with Olaaa!! Perrrfect answer.   in 7 votes )   [?]
 
You have to be logged on to rate
  
kaymant (1649)

Forum Expert Blazing goIITian

Olaaa!! Perrrfect answer. 309  [361 rates]

kaymant's Avatar

total posts: 458    
online Online

If you require positive solutions for the same equation, continuing with the balls and baskets model, basically we require that the least number of balls in each basket should be 1. So first out of the n balls, put 1 in each basket so that now no matter how I distribute the balls (after putting 1 ball in each basket), non of the baskets will be empty. But now we have the same old problem of finding the number of non-integral solution with n replaced by n-k:


x1 + x2 + x3 + . . . + xk  = n-k


Putting n-k in place of n in the answer of the last posting, we get the number of positive integral solution of the above equation as n-1Ck-1 .


http://kaymant.googlepages.com/
 this reply: 15 points  (with Olaaa!! Perrrfect answer.   in 3 votes )   [?]
 
You have to be logged on to rate
  
feynmann (2438)

Forum Expert Blazing goIITian

Olaaa!! Perrrfect answer. 440  [559 rates]

feynmann's Avatar

total posts: 866    
offline Offline

@ Kayamant , can u give us an efficient algorithm for finding all the integral solutions for the system subject to0<= x[i]<k for all i = 1()r


 


I require it !!!

 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
rajatsen91 (1403)

Blazing goIITian

Olaaa!! Perrrfect answer. 227  [361 rates]

rajatsen91's Avatar

total posts: 516    
offline Offline
@feynman
If you are asking the number of solutions of
x1+x2.................+xn = m
while 0<=xithen you can consider the expression
(x^1+x^2 .........+x^k-1)^n
and look for the coeffecient of x^m in it.
This will give you the required answer.

I like to be myself.
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
kaymant (1649)

Forum Expert Blazing goIITian

Olaaa!! Perrrfect answer. 309  [361 rates]

kaymant's Avatar

total posts: 458    
online Online
@feynmann
I think nested for loops might give the required solutions, it might not be the most efficient solution though. let me check.

http://kaymant.googlepages.com/
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
vercitty (229)

Scorching goIITian

Olaaa!! Perrrfect answer. 39  [56 rates]

vercitty's Avatar

total posts: 244    
offline Offline

thanks a lot kaymant, u r really helping me bro. I'll be greatfull. That explanation was crystal clear and made super sense.


3SmartCubes.com - IQ Test
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
vercitty (229)

Scorching goIITian

Olaaa!! Perrrfect answer. 39  [56 rates]

vercitty's Avatar

total posts: 244    
offline Offline

what is the meaning of finding coefficient of x^n in the expansion of (x + x^2 + x^3 +.......x^n)^r ?????


Please reply


3SmartCubes.com - IQ Test
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
amulye (180)

Scorching goIITian

Olaaa!! Perrrfect answer. 34  [39 rates]

amulye's Avatar

total posts: 256    
offline Offline
me too i dont understand y shud v find it pls anybody ans dis

its time fr u to achive d goal wake up donot hesitate to do hard work
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
feynmann (2438)

Forum Expert Blazing goIITian

Olaaa!! Perrrfect answer. 440  [559 rates]

feynmann's Avatar

total posts: 866    
offline Offline

@rajatsen91 , I am asking for an algorithm for finding all possible ( as defined by me )solutions of the above eqn , not the mere no of solution .


@Kayamant , nested loop will not do here as I want to make both k and n variable ( that is , I want to compute it for a number of times) , so u need to run a variable number of for loops then !!!!!


 

 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
 
Forum Index -> Algebra
Go to:   

 Aakash Institute IIT/ AIEEE/ Medical Crash Course
Name  
E-mail  
Phone  
Mobile  
** Hurry. Exclusive goIIT Offer. Limited Seats Only!
available in: New Delhi, Amritsar, Bhatinda, Bokaro, Chandigarj, Dehradun, Guwhati, Hyderabad, Indore, Jaipur, Kanpur, Karnal, Kolkata, Kota, Lucknow, Ludhiana, Mumbai, Noida, Patiala, Patna, Pune, Ranchi, Varanasi
Top Offers for goIITians
Correspondence Courses
Brilliant Tutorials
Narayana Institute
Aakash Institute
Classroom/Crash Courses
Aakash-IITJEE : AIEEE
Aakash-IITJEE : DCE
Aakash-IITJEE : MHTCET
Aakash Institute : AIPMT
Online Test Series
Brilliant Tutorials
Narayana Institute
Aakash Institute
Mahesh Tutorials
AMITY      Sri Chaitanya