Kalkulator Permutasi (nPr)
Hitung pengaturan R item yang dipilih dari n.
Hasil update saat Anda mengetik.
Tentang kalkulator ini
A permutation counts how many ways you can arrange r items chosen from a set of n, where order matters — so first, second and third place are three different outcomes. This calculator returns the exact count and the formula it used, even for large n and r.
The formula is nPr = n! / (n − r)!, which is the same as multiplying the top r numbers counting down from n. For 10 items taken 3 at a time, that is 10 × 9 × 8 = 720. Choosing none gives nP0 = 1, and arranging all of them gives nPn = n!. You cannot choose more items than you have, so if r is greater than n the tool returns a dash.
Permutations answer "how many ordered sequences?" — the number of possible race finishes, seating orders, PIN codes or ranked shortlists. When order does not matter, use a combination instead, which is always the smaller count.
Sering kali mengajukan pertanyaan
Apa perbedaan antara permutasi dan kombinasi?
Dalam urutan permutasi penting (pertama, kedua, ketiga adalah hasil yang berbeda); dalam kombinasi itu tidak. ada setidaknya sebanyak permutasi sebagai kombinasi.
Apa rumus permutasinya?
NPr = n! / (n ↑ r)!. Untuk 10 item diambil 3 per satu: 10 × 9 × 8 = 720.
Kapan aku harus menggunakan permutasi?
Ketika urutan penting: finisher peringkat, mengisi tempat pertama/detik/tiga, tempat duduk orang dalam baris, atau membangun kode perintah.
Apa yang terjadi jika r lebih besar dari n?
Anda tidak dapat mengatur lebih banyak item daripada yang Anda miliki, sehingga hasilnya tidak terdefinisi dan alatnya kembali ke dasbor.
Apa itu NP0?
Ini adalah 1 ° tepat ada satu cara untuk mengatur apa-apa, pengaturan kosong.
Apa itu NPn?
Sama dengan n!, karena mengatur semua n item dalam urutan sama dengan faktorial penuh. Misalnya 4P4 = 4! = 24.
API — use this calculator from code
Sebut kalkulator ini sebagai titik akhir JSON Gratis tidak diperlukan kunci. Kirim nilai ruas di bawah sebagai parameter query atau JSON. Apa pun yang Anda abaikan menggunakan baku yang sama halaman ini sudah diisi dengan; sebuah parameter tidak diketahui adalah 400, tidak pernah nol diam. Baca dokumen API penuh →
Titik Akhir
GET https://calculator.free/api/v1/permutation/
curl
curl "https://calculator.free/api/v1/permutation/?n=10&r=3"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/permutation/?" + new URLSearchParams({
"n": "10",
"r": "3"
}));
const data = await r.json();
console.log(data.results);
Hasil diperkirakan hanya untuk bimbingan umum, bukan keuangan, medis atau pajak.