Or login with:
| intfixed_permutation( | int | n | |
| int | m | ) |
#include <codecogs/maths/combinatorics/sequences/fixed_permutation.h> #include <iostream> int main() { std::cout << "The number of permutations of 10 elements with 5 fixed is: "; std::cout << Maths::Combinatorics::Sequences::fixed_permutation(10, 5) << std::endl; return 0; }
The number of permutations of 10 elements with 5 fixed is: 11088
| n | the size of the permutation |
| m | the number of fixed objects |
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.
You must login to leave a messge