51 51 votes A multiset is an unordered collection of elements where elements may repeat any number of times. The size of a multiset is the number of elements in it, counting repetitions. What is the number of multisets of size $4$ that can be constructed from n distinct elements so that at least one element occurs exactly twice? How many multisets can be constructed from n distinct elements? Combinatory gatecse-2000 combinatory normal descriptive counting balls-in-bins + – Kathleen 17.2k views answer comment Share Follow Print See all 4 Comments 4 4 Comments reply priyanka gautam-piya commented Dec 11, 2016 reply Follow flag at least one element can occur twice :- n.n. (n-1)(n-2) multisets all distinct elements :- n.(n-1).(n-2).(n-3) multisets is i am right ? 0 0 replyShare taran97 commented Jul 7, 2021 reply Follow flag Hints: A multiset can be of the form $\{x,x,y,y\}$ or $\{x,x,y,z\}$ or $\{y,x,y,z\}$ Multiset is an unordered collection 0 0 replyShare rish1602 commented Jan 29, 2022 reply Follow flag Shouldn’t the answer to the part (b) be (e^n) -1 reason- multiset of size 1= n multiset of size 2= n^2/ 2! multiset of size 3= n^3/3! multiset of size 4= n^4/ 4! ………. multiset of size n= n^n/ n! …… thus it equals exponential (e^n) -1 0 0 replyShare Deepak Poonia commented May 15, 2025 reply Follow flag Detailed Video Explanation with Complete Analysis: https://youtu.be/flD8YuOU2VI?t=1959&feature=shared 4 4 replyShare Please log in or register to add a comment.
0 0 votes a. no of the multiset of length 4 such that at least one element is repeated. n^4 - n(n-1)(n-2)(n-3) b. length 0 :nC0 length 1 : nC1 lenth 2 : nC1+nC2 . . . lenth n :nC1+nC2+........ nCn total = 1+(n)nC1+(n-1)nC2+..........+nCn Priyadrasta Raut answered Feb 19, 2019 Priyadrasta Raut comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes For question a) Case 1: Exactly ONE element occurs exactly twiceThis creates a multiset that looks like $\{a, a, b, c\}$.Choose 1 element out of $n$ to be the one that repeats twice: $\binom{n}{1}$Choose 2 elements out of the remaining $n-1$ to appear once each: $\binom{n-1}{2}$Ways for Case 1: $\binom{n}{1} \times \binom{n-1}{2}$ Case 2: Exactly TWO elements occur exactly twice (The Correction)This creates a multiset that looks like $\{a, a, b, b\}$.Choose 2 elements out of $n$ to repeat twice: $\binom{n}{2}$Ways for Case 2: $\binom{n}{2}$ Note : We cannot we use the approach of picking one element and then another $\binom{n}{1} \times \binom{n-1}{1}$ , because it overcounts example: Suppose we pick first element as 1 and second element as 2 which gives {1,1,2,2,} but since order dosent matter in a multiset if we pick first element as 2 and second element as 1 then it overcounts the same set {1,1,2,2} For question b)Answer is infinite.Take a single element {A} then possible multisets are {A}{A, A}{A, A, A}{A, A, A, A}...and so on, forever. Atul_G_Kamath answered Apr 5 Atul_G_Kamath comment Share Follow 0 reply Please log in or register to add a comment.