Combinatorics Calculator

Calculate permutations, combinations, repeated permutations, and multiset combinations from n and r.

Category: Calculators

When to use?

Use it to count ways to pick 3 people from 5, estimate password combinations, or calculate sample-space sizes for probability problems.

How to use

  • Enter n, the total number of items.
  • Enter r, the number of selected items.
  • Compare permutation, combination, and repeated-selection results.

Input Explanation

n and r must be non-negative integers. For ordinary permutations and combinations, r cannot exceed n.

Calculation Basis

P(n,r) = n!/(n-r)!, C(n,r) = n!/(r!(n-r)!), repeated permutation = n^r, and multiset combination = C(n+r-1, r).

Usage Examples

  • Probability calculations - Count the size of a sample space before calculating probability.
  • Password estimates - Estimate how many possible codes a rule can generate.

Examples

  • P(5,3) = 60
  • C(5,3) = 10
  • A 4-digit password using 10 digits with repeats allowed has 10^4 = 10,000 possibilities

FAQ

What is the difference between permutation and combination?

Permutations care about order, so ABC and BAC are different. Combinations ignore order, so they are the same selection.

What does repeated combination mean?

It counts selecting r items from n types when repeats are allowed and order does not matter.

Related Tools

  • Fibonacci Calculator - Generate Fibonacci sequence values up to 100 terms and show the golden-ratio relationship.
  • Prime Number Checker - Check whether a natural number is prime and show its prime factorization when it is composite.
  • Average Calculator - Calculate the average, maximum, minimum, and sum of a list of numbers.
  • Percentage Calculator - Find what percentage a part is of a whole, or calculate a percentage of a value.
  • Discount Calculator - Enter the original price and discount rate to find the final price and the amount saved.
  • Ratio Calculator - Simplify the ratio of two values, or solve for the unknown in a proportion.