Permutation Calculator (nPr)
Ndepụta nhazi nke r ihenhọrọ ndị ahụ a họọrọ site n'n.
Nhọrọ ndị ahụ ga-akpụzi mgbe ị na-etipụta.
N'ihe banyere calculator a
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.
Ajụjụ ndị a na-ajụkarị
Gịnị bụ ọdịiche dị n'etiti permutation na combination?
N'ime permutation usoroiheomume ihe (ọbụghị mbụ, nke abụọ, nke atọ bụ ihenhọrọ dị iche iche); n'ime a combination ọ bụghị. E nwere mgbe niile n'okpuru permutations dị ka combinations.
Gịnị bụ permutation formula?
nPr = n! / (n − r)!. Maka ihenhọrọ 10 ébūbú 3 n'oge: 10 × 9 × 8 = 720.
Kedụ mgbe m ga-eji permutation?
Mgbe usoro ihe omume dị mkpa: ranking finishers, na-adọta mbụ / nke abụọ / nke atọ ebe, na-adọta ndị mmadụ n'ime row, ma ọ bụ na-ebubata usoro ihe omume.
Gịnị ga-eme ma ọ bụrụ na r dị ukwuu karịa n?
I gaghị etinye ihenhọrọ ndị ọzọ n'otu n'otu karịa ka ị nwere, yabụ na nsonaazụ ahụ abụghị nke akọwapụtara ma tulee ahụ na-eziga n'ihu dashes.
Gịnị bụ nP0?
Ọ bụ 1 - e nwere ụzọ n'otu iji rụnye ihe ọbụla, arụnye nke ọfụụ.
Gịnị bụ nPn?
Ọ dị n!, n'ihi na ịhazi ihenhọrọ niile n n'ụzọ bụ otu n'ime ihenhọrọ niile. N'ihe atụ 4P4 = 4! = 24.
API — jiri kaadị a site na kóòdù
Kpọọ kalkulata a dịka ebe ngwụcha JSON n'efu - enweghị kii achọrọ. Ziga valiu ebe ahụ n'okpuru dịka paramita ajụjụ mọọbụ JSON. Ihe ọbụla ị na-ewepụ na-eji dìfọ́ọ̀ltụ̀ nke a na-edebe ihuakwụkwọ a na ya; parameter a na-amaghị bụ 400, ọ dịghị sẽọ̀rọ̀. Gụọ ngwe ndị ahụ niile →
Ebemkpofuozi
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);
Ihe a na-ahụta bụ n'ihi nlekọta n'ozuzu ya, ọ bụghị nlekọta ego, ọgwụ ma ọ bụ nlekọta ego.