1,828 views
3 3 votes

Q.find number of 7 digit number with sum of digits  equal to  11 and formed using digits 1 ,2 ,3 Can we do this with help of generating functions.

1 Answer

Best answer
9 9 votes

Given : Seven digit number , no of digit allowed :1,2,3,Sum should be 11
To find : No of such combination :
Solution :

1) Without generating function :


 $ (3,3,1,1,1,1,1) , (3,2,2,1,1,1,1) , (2,2,2,2,1,1,1)$

  No of combinations : $ \frac{7!}{2!5!}  + \frac{7!}{2!4!}  + \frac{7!}{3!4!}$ =$161$ 
 


2) Generating function:

for any place function given as :$x+x^2+x^3$
we have 7 of this :
function $=(x+x^2+x^3)^7$
[x11] $x^7$ $(1+x+x^2)^7$
[$x^4$]$(1-x^3)^7$$(1-x)^{-7}$
[$x^4$] $10_c4$ $- 7\times 7_c1$ 
$=161$

• edited by
Position:
Show:

Related questions

3 3 votes
4 answers 4 answers
2.3k
2.3k views
srestha asked Mar 8, 2019
2,310 views
The generating function of the sequence $\left \{ a_{0},a_{1},a_{2}..........a_{n}………...\infty \right \}$where $a_{n}=\left ( n+2 \right )\left ( n+1 \right ).3^{n}$ is$a...
0 0 votes
1 1 answer
1.0k
1.0k views
0 0 votes
0 0 answers
507
507 views
codingo1234 asked Dec 10, 2018
507 views
Difference between getting closed form of generating function and closed form of the given sequence ,pls someone explain with an example
1 1 vote
3 answers 3 answers
3.0k
3.0k views
srestha asked Dec 3, 2018
2,976 views
What will be solution of this function for coefficient of $x^{100}$?$$\frac{1}{\left ( 1-x^{10} \right )(1-x^{20})(1-x^{50})}$$