# Giving Away Money

A rich man is on the verge of dying. He has unlimited amount of money and intends to distribute some of it among his $$n$$ relatives with the following conditions :-

1. Total money to be distributed must be a positive multiple of $$j$$
2. No relative gets more than ($$mj-1$$) rupees. (A relative may also get no money)

Find total number of ways in which the rich man can distribute the money

Take $$n=6$$, $$j=5$$ and $$m=3$$

×