Combination with Replacement Calculator

Combinations with Replacement

Explanation of the Calculator:

  1. Input Fields:

    • n: Number of distinct objects to choose from.
    • r: The size of the sample.
  2. Formula: The combination with replacement formula is:

    CR(n,r)=(n+r1)!r!(n1)!

    This formula calculates the number of ways to choose r elements from n distinct elements where repetition of elements is allowed.

  3. Buttons:

    • Calculate: Performs the calculation using the combination with replacement formula.
    • Clear: Resets the input fields and results.

Example:

  • If you input n = 5 (5 objects) and r = 3 (sample size of 3), the result will be calculated as: CR(5,3)=(5+31)!3!(51)!=7!3!4!=35
Advertisements