Permutation & Combination 🎲

Permutation (P)
P(5, 2)
20
Combination (C)
C(5, 2)
10

Formulas

P(n, r) = n! / (n-r)!

C(n, r) = n! / (r! * (n-r)!)

Features

  • Calculate Permutation and Combination simultaneously
  • Shows standard nPr and nCr formulas
  • Supports large numbers
  • Input validation

How to Use

  1. Enter Total Items (n).
  2. Enter Selected Items (r).
  3. View nPr and nCr results.

When to use Permutation?

When the order of selection matters (e.g., lock code, race finishers).

When to use Combination?

When the order does not matter (e.g., lottery numbers, team selection).