How many words can be formed from the word SAMARINDA, if
i)4 letters are to be chosen
The letters in alphabetical order are AAADIMNRS
Case 1: All 4 letters come from {D,I,M,N,R,S}
6P4=360 ways.
Case 2: Exactly 1 A and 3 letters from {D,I,M,N,R,S}
An example would be SAND.
Choose the 3 non-A letters from {D,I,M,N,R,S} in 6C3=20 ways.
Arrange the 4 letters in 4P4=4!=24 ways.
That's 20∙24=480 ways for case 2.
Case 3: Exactly 2 A's and 2 letters from {D,I,M,N,R,S}.
An example would be ADAM
Choose the 2 non-A letters from {D,I,M,N,R,S} in 6C2=15 ways
Arrange the 4 letters in 4!/2!=24/2=12 ways
That's 15∙12=180 ways for case 3.
Case 4: Exactly 3 A's and 1 letter from {D,I,M,N,R,S}.
An example would be ABAA
Choose the 1 non-A letters from {D,I,M,N,R,S} in 6C1=6 ways
Put it in any of 4 positions.
That's 6∙4=24 ways for case 4.
Total for the three cases: 360+480+12+24=1044
ii) only 3 letters can be used.
Case 1: Exactly 0 A's and all 3 letters from {D,I,M,N,R,S}
An example would be RIM.
Choose and position the 3 non-A letters from {D,I,M,N,R,S} in 6P3=6∙5∙4=120
ways.
That's 120 ways for case 1.
Case 2: Exactly 1 A and 2 letters from {D,I,M,N,R,S}.
An example would be AIR
Choose the 2 non-A letters from {D,I,M,N,R,S} in 6C2=15 ways
Arrange the 3 letters in 3!=6 ways
That's 15∙6=90 ways for case 1.
Case 3: Exactly 2 A's and 1 letter from {D,I,M,N,R,S}.
An example would be ADA
Choose the 1 non-A letter from {D,I,M,N,R,S} in 6C1=6 ways
Put it in any of 3 positions.
That's 6∙3=18 ways for case 1.
Case 4: Exactly 3 A's
The only one is AAA.
That's 1 way for case 4
Total for the four cases: 120+90+18+1=229
Edwin