A Newspaper Permuted

H I N D U S T A N \huge{HINDUSTAN}

The number of permutations of the letters of the word H I N D U S T A N HINDUSTAN such that neither the pattern H I N 'HIN' ,nor D U S 'DUS' nor T A N 'TAN' appears are


The answer is 169194.

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.

2 solutions

Figel Ilham
Mar 19, 2015

The possible permutations for HINDUSTAN is 9 ! 2 ! = 181440 \frac{9!}{2!} =181440

Now find the possible permutations of consisting H I N 'HIN' , D U S 'DUS' , or T A N 'TAN'

  1. The number of permutations of consisting H I N 'HIN' is 7 ! 7!

  2. The number of permutations of consisting D U S 'DUS' is 7 ! / 2 ! 7!/2! (since N are ordered twice)

  3. The number of permutations of consisting T A N 'TAN' is 7 ! 7!

Now there is a possibility that each case of H I N 'HIN' , D U S 'DUS' , or T A N 'TAN' are arranged more than twice, such as D U S H I N N A T DUSHINNAT since this arrangement occur on the case either 1 or 2. Then, we make another case:

  1. The number of permutations of consisting H I N 'HIN' and D U S 'DUS' is 5 ! 5!

  2. The number of permutations of consisting D U S 'DUS' and T A N 'TAN' is 5 ! 5!

  3. The number of permutations of consisting H I N 'HIN' and T A N 'TAN' is 5 ! 5!

Now we erase the doubles and we accidentally erase all the possibilities of consisting H I N 'HIN' , D U S 'DUS' and T A N 'TAN' . The number of permutations of this case is 3 ! 3!

Finally the possible permutations of consisting H I N 'HIN' , D U S 'DUS' , or T A N 'TAN' is 7 ! + 7 ! 2 ! + 7 ! 5 ! 5 ! 5 ! + 3 ! = 12246 7!+\frac{7!}{2!} + 7! - 5!-5!-5!+3! = 12246 possibilities.

Since we want to find the complement of the permutations, we have subtract the cases from the all possibilities. So we have 181440 12246 = 169194 181440-12246=169194 possibilities to make permutations with conditions neither consisting H I N 'HIN' , D U S 'DUS' nor T A N 'TAN'

For simply one, use inclusive and exclusive principle

Did exactly the same !

Rohit Shah - 6 years, 2 months ago

@Figel Ilham May you please explain it in a more simpler way!! Need some help :)

Hrishik Mukherjee - 6 years, 2 months ago

Log in to reply

For easier, try to draw a Venn diagram or inclusive-exclusive principle.

Figel Ilham - 6 years, 2 months ago

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

Rohit Shah - 6 years, 2 months ago
Brock Brown
Mar 18, 2015

Python 2.7:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
from itertools import permutations
def goal(test):
    return 'hin' not in test and\
       'dus' not in test and\
       'tan' not in test
found = set()
count = 0
for combo in permutations('hindustan'):
    test = ''.join(combo)
    if test not in found:
        found.add(test)
        if goal(test):
            count += 1
print "Answer:", count

Cheating !

Venkata Karthik Bandaru - 6 years, 2 months ago

Log in to reply

His combinatorics level is completely fake!!I hate his solutions!!

Adarsh Kumar - 6 years, 2 months ago

Log in to reply

I hate my solutions, too. Upvoted.

Brock Brown - 6 years, 2 months ago

I'm glad someone knows that this is cheating. I don't really know real math. Upvoted.

Brock Brown - 6 years, 2 months ago

This is not cheating.......this is your programming skill which shows how well you can think

Vighnesh Raut - 6 years, 2 months ago

Log in to reply

Haha, lol programming is easier than thinking math !

Venkata Karthik Bandaru - 6 years, 2 months ago

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 ....

Vighnesh Raut - 6 years, 2 months ago

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 !

Venkata Karthik Bandaru - 6 years, 2 months ago

Log in to reply

@Venkata Karthik Bandaru Exactly.. We must also see the beauty of maths..

Vighnesh Raut - 6 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...