There is a mistake in the first part. It should be .
For the second part it is just .
Suppose I have n number of identical objects and I want to distribute them into k number of boxes there are
ways to do so, with no constrains upon the number of balls in the boxes.
Now if I have n non identical objects and k boxes what should be the number of ways to distribute the objects?