Calculation of possible variations with repetition
This function calculates the number of possible variations from a set with repetition. In the variation with repetition, a number k is selected from the total number n.
The number of possible variations from a set with repetition is calculated. For variations with repetition, a number k is selected from the total n.
Each object may be selected more than once in the object group, i.e. with repetition. In the case of the urn model, this corresponds to drawing with replacement and taking into account the order.
Dieses Beispiel zeigt wieviel Gruppen mit 2 Objekten aus den Ziffern 1 bis 3 gebildet werden können. Es sind die Gruppen (1,1), (1,2), (1,3), (2,1), (2,2), (2,3), (3,1), (3,2) und (3,3). Also neun Gruppen.
Four balls are to be drawn from a box with six different colored balls. The number of ways to select and order four balls is calculated using the following formula:
\(\displaystyle n^k=6^4=1296 \)