It is appropriate to use a Stars and Bars argument in this case: http://en.wikipedia.org/wiki/Stars_and_bars_%28combinatorics%29 . You can add an extra pile to make the problem easier where the extra pile is the remaining number of objects that you don't use. Hence. you want to distribute k objects over n+1 piles, and the argument follows:)