answersLogoWhite

0


Best Answer


from itertools import permutations

from string import join


arrangements = [ ]

for p in permutations ( 'ugccsir', 6 ) :

arrangement = join ( p, '' )

if 'ui' in arrangement :

continue

if not arrangement in arrangements :

arrangements . append ( arrangement )


print len ( arrangements )

The above Python code gives a result of 2,220.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the number of distinct arrangements of the letters of the word ugccsir so that you and i cannot come together?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Algebra
Related questions