H I N D U S T A N
The number of permutations of the letters of the word H I N D U S T A N such that neither the pattern ′ H I N ′ ,nor ′ D U S ′ nor ′ T A N ′ appears are
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.
Did exactly the same !
@Figel Ilham May you please explain it in a more simpler way!! Need some help :)
Log in to reply
For easier, try to draw a Venn diagram or inclusive-exclusive principle.
Its basically the principle of inclusion and exclusion. You could read about that on the brilliant wiki and try a couple of problems to get the hang of it
Python 2.7:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
Cheating !
Log in to reply
His combinatorics level is completely fake!!I hate his solutions!!
I'm glad someone knows that this is cheating. I don't really know real math. Upvoted.
This is not cheating.......this is your programming skill which shows how well you can think
Log in to reply
Haha, lol programming is easier than thinking math !
Log in to reply
Yea but programming is as difficult than thinking math because you can solve almost all programming problems mathematically but you cannot solve all mathematical problems by programming . As in this problem, most of us would have thought of a process of using permutations and all but only very few of us would have thought of using programming ....
Log in to reply
@Vighnesh Raut – Actually, what I feel is that if people start using computer tools like WolframAlpha or programming, they wont see the beauty of doing math by hand and original thought..... I surely appreciate people who provide both programming and by-hand solutions to a problem, but not those who always use computers !
Log in to reply
@Venkata Karthik Bandaru – Exactly.. We must also see the beauty of maths..
Problem Loading...
Note Loading...
Set Loading...
The possible permutations for HINDUSTAN is 2 ! 9 ! = 1 8 1 4 4 0
Now find the possible permutations of consisting ′ H I N ′ , ′ D U S ′ , or ′ T A N ′
The number of permutations of consisting ′ H I N ′ is 7 !
The number of permutations of consisting ′ D U S ′ is 7 ! / 2 ! (since N are ordered twice)
The number of permutations of consisting ′ T A N ′ is 7 !
Now there is a possibility that each case of ′ H I N ′ , ′ D U S ′ , or ′ T A N ′ are arranged more than twice, such as D U S H I N N A T since this arrangement occur on the case either 1 or 2. Then, we make another case:
The number of permutations of consisting ′ H I N ′ and ′ D U S ′ is 5 !
The number of permutations of consisting ′ D U S ′ and ′ T A N ′ is 5 !
The number of permutations of consisting ′ H I N ′ and ′ T A N ′ is 5 !
Now we erase the doubles and we accidentally erase all the possibilities of consisting ′ H I N ′ , ′ D U S ′ and ′ T A N ′ . The number of permutations of this case is 3 !
Finally the possible permutations of consisting ′ H I N ′ , ′ D U S ′ , or ′ T A N ′ is 7 ! + 2 ! 7 ! + 7 ! − 5 ! − 5 ! − 5 ! + 3 ! = 1 2 2 4 6 possibilities.
Since we want to find the complement of the permutations, we have subtract the cases from the all possibilities. So we have 1 8 1 4 4 0 − 1 2 2 4 6 = 1 6 9 1 9 4 possibilities to make permutations with conditions neither consisting ′ H I N ′ , ′ D U S ′ nor ′ T A N ′
For simply one, use inclusive and exclusive principle