11 Replies
@Apu
Note for OP
+solved @user1 @user2...
to close the thread when your doubt is solved. Mention the users who helped you solve the doubt. This will be added to their stats.method 2 is about finding total number of cases and eliminating all cases which are not favourable to the given condition
that's why total number of cases should be in this case, imagine giving 3 people 5 different colour balls
think of it this way, each colour ball can be given to 3 different people so take that as one case and do the same for the other 4 balls, you'll get 3x3x3x3x3=3^5
normally in such questions you can simply take n^r where n is people and r is balls
a similar result is there in functions where total number of functions is n^r (I forgot if r is for domain or codomain but it's either of them)
(Principle of Inclusion and Exclusion)
MATLAB ek ball ko dene ke 5 tareeke 2nd ball ke BHI 5 ways and so on...
Thanks for the help but Abhi padha nhi shayad ye
Shouldnt it be 5P3+5P4+5P5
what
there are 5 balls so there's 3 ways of distributing that ball to a person because there are 3 people
Thanks man but I am not getting it
well then just remember it as n^r
try thinking about it over and over again, eventually you'll understand
+solved @BlindSniper (BS)
Post locked and archived successfully!
Archived by
<@1179817028106858538> (1179817028106858538)
Time
<t:1728657409:R>
Solved by
<@418393953742618631> (418393953742618631)