Chuyển đến nội dung
CalcVerse

Máy tính chỉnh hợp và tổ hợp

Count combinations (nCr) and permutations (nPr), with and without repetition. Results are exact, even when they have hundreds of digits.

Phần hướng dẫn bên dưới chưa có bằng tiếng Việt nên được hiển thị bằng tiếng Anh. Bản thân máy tính đã được dịch đầy đủ.

Cách sử dụng máy tính này

  1. Enter n, the total number of items to choose from.
  2. Enter r, how many you choose.
  3. Use combinations when order doesn't matter (a lottery draw) and permutations when it does (a race podium).

Công thức

Permutations count ordered arrangements; combinations count unordered selections.

nPr = n! / (n − r)!
nCr = n! / (r! (n − r)!)
With repetition: nʳ (ordered), (n + r − 1)Cr (unordered)

Examples

  1. Choosing 3 of 10 people for a committee: 10C3 = 120.
  2. Gold, silver, bronze among 10 runners: 10P3 = 720.
  3. 6 numbers from 49 in a lottery: 49C6 = 13,983,816.

Câu hỏi thường gặp

How do I know if order matters?

Ask whether swapping two chosen items gives a different outcome. If yes (ranking, PIN codes, seating), use permutations. If no (teams, hands of cards), use combinations.

What does 'with repetition' mean?

Items can be chosen more than once, such as digits in a PIN or scoops of the same ice-cream flavour.

Why is nCr the same as nC(n − r)?

Choosing r items to include is the same as choosing n − r items to leave out.