Introduction - If you have any usage issues, please Google them yourself
There are n distinct elements, each element can be selected multiple times, for a total choose k elements, there are many kinds of election law? For example,
n = 3, k = 2, there are (1,1), (1,2), (1,3), (2,2), (2,3), (3,3), a total of six colors method.