I have $k_1$ red balls and $k_2$ green balls in a box. These balls are select by a uniform distribution. Randomly select $n$ balls from the box with replacement. What is the probability that selects $i$ red ball and $n-i$ green ball?
Note that, the prob. did not follow by Hypergeometric distribution because I am considering the with replacement case.