What are the commonly used permutation and combination formulas?
Commonly used formulas include permutation formulas, combination formulas, repeated permutation formulas, repeated combination formulas, etc. Detailed introduction: 1. Arrangement formula: The number of ways to select m elements from n elements for arrangement: P(n, m) = n! / (n - m)!, The number of full arrangement methods for n elements: P (n, n) = n!; 2. Combination formula: Number of ways to select m elements from n elements for combination: C(n, m) = n! / (m! * (n - m)!) etc.
In permutation and combination, commonly used formulas include:
-
Permutation formula:
- The number of ways to select m elements from n elements for arrangement: P(n, m) = n! / (n - m)!
- The number of full arrangement methods for n elements: P( n, n) = n!
-
Combination formula:
- Number of ways to select m elements from n elements for combination: C (n, m) = n! / (m! * (n - m)!)
- The number of ways to select m elements from n elements for combination (simplified form): C(n, m ) = C(n, n-m)
-
Repeated arrangement formula:
- The number of ways to repeatedly select m elements among n elements for arrangement :P'(n, m) = n^m
-
Repeated combination formula:
- Repeatedly select m elements among n elements. Number of combination methods: C'(n, m) = C(n m - 1, m)
These formulas are very useful when calculating permutation and combination problems and can help determine The total number of options and arrangements of elements. It should be noted that the premise of these formulas is that elements cannot be selected repeatedly. If elements are allowed to be selected repeatedly, repeated arrangement and repeated combination formulas need to be used.
The above is the detailed content of What are the commonly used permutation and combination formulas?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Notepad++7.3.1
Easy-to-use and free code editor

Atom editor mac version download
The most popular open source editor

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.
