Marbles problem in Mathematics section

Can anyone please tell me how to approach this problem?

You can do this problem with pure PnC. Only difficulty you might face is calculating nCr which you can calculate in this fashion to avoid overflow.
ans = (n/1)(n-1/2)(n-3/3)…
For detailed explanation, please go through this link.
Link

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

Thanks for resolving my doubt. I have done the above said thing.

Great to hear that :smile: