Permutasyon Kalkülatory (nPr)
Saýlanan r elementleriň n'den saýlanan tertibi sana
Netijeler ýazýan wagtyň täzelener.
Bu hasapçy hakda
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.
Köp soralýan soraglar
Permutasyon we birleşme arasynda näme tapawut bar?
Permutasyonda tertibi ähmiýetli (ilki, ikinji, üçünji dürli netijeler); birleşmelerde bu ähmiýetli däl. Her wagt birleşmelerden az-azdan bir oçak permutasyon bar.
Permutasyon formulası näme?
nPr = n! / (n − r)!. For 10 items taken 3 at a time: 10 × 9 × 8 = 720
Permutasyony näçe gezek ulanmak gerek?
Resimler örän möhüm bolsa: tamamlanyjylary sanamak, birinji/ikinji/üçünji ýerleri doldurmak, adamlary bir sahypada oturtmak ýa-da resimli kod gurmak.
Eger r n'den ulu bolsa näme bolar?
Sen özüňde bar zatlardan has köp zady tertibläp bilmeýäň, şonuň üçin netije belli däl we esbap bir çyzgyny gaýtarýar.
nP0 näme?
Bu 1 - hiç zat düzüp bilmek üçin diňe bir ýol bar, boş düzüw.
NPN näme?
Bu n! deňdir, sebäbi n elementleri tertibe salyp düzüwmek doly faktoraly bilen deňdir. Meselem 4P4 = 4! = 24.
API — bu hasapçyny koddan ullan
Bu hasapçyny boş JSON ahtar noktasy hökmünde çagyr - açar gerek däl. Aşakdaky meýdança mykdarlaryny soragyň parametrleri ýa-da JSON hökmünde iber. Siziň goýmaýan hernäňiz şu sahypanyň öň bellenen öň bellenenini ulanýar; namydar parametr 400, hiç wagt sessiz sıfır däl. Eňlisçe senedleri oka →
Endpoint
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);
Netijeler diňe umumy ýardam üçin hasaplanypdyr, maliýe, saglyk ýa-da salgyt maslahaty üçin däl.