Permutation Calculator (nPr)
Kuverenga zvakanyorwa zvirongwa zve r zvinhu zvakasarudzwa kubva n.
Zvinyorwa zvinogadziridzwa paunenge uchinyora.
Nezve iyi kalkulator
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.
Zvimwe zvinobvunzwa zvakanyanya
Chii chinonzi chiyero pakati pe permutation ne combination?
Mu permutation chirongwa zvinhu (kutanga, wechitatu, wechitatu vari zvakasiyana zvikonzero); mu combination haina. There are always at least as many permutations as combinations.
Chii chinonzi permutation formula?
nPr = n! / (n − r)!. For 10 items taken 3 at a time: 10 × 9 × 8 = 720.
Kana ndichifanira kushandisa permutation?
Kana kukumbira zvinhu: kuongorora vagadziri, kubvisa yekutanga / yechitatu / yechitatu nzvimbo, kugara vanhu mu row, kana kugadzira yakanyorwa code.
Chii chinoitika kana r iri kuwedzera kupfuura n?
Unogona kuisa zvinhu zvakawanda kupfuura zvaunoita, saka mhedzisiro haisi kuzivikanwa uye chirongwa ichi chinodzosera dashi.
Chii chinonzi nP0?
Izvi 1 — pane zvakajeka imwe nzira yekugadzirira chinhu, vakasununguka kugadzirira.
Chii chinonzi nPn?
Iine n!, nekuti kuisa n zvinhu muhurongwa kunoreva kuti 4P4 = 4! = 24, saka n! = 24.
API — kushandisa iyi kalkulator kubva code
Nhare iyi calculator semahara JSON endpoint - hapana chikuru zvinodiwa. Kutumira nzvimbo mavara pasi separameter query kana JSON. Chii zvachose chaunoisa kunze chinoshandisa default iyo peji iri rakasviba nayo; parameter isiri yechokwadi inonzi 400, uye haisi zero. Tora yakazara API docs →
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);
Zviratidzo zvemubvunzo ndezvekufungidzira kwechinangwa chekudzidzisa chete, kwete zvemari, zvehutano kana zvemari.