How to Factorize a Large Number for Permutations?

In summary, to solve for n in the equation nP7 = 604800, it is necessary to find the factors that multiply to give the number 604800. Since it is divisible by 100, 10 must be one of the factors. By testing various values and considering the prime factorization of 604800, it is possible to quickly find the value of n. In cases where the result is not divisible by 100, the prime factorization can provide clues to find the correct value of n.
  • #1
Nader AbdlGhani
38
2
Hey guys , Could anyone here tell me the easiest way to solve for n , nP7 = 604800 , the traditional way (I'm currently using) is to divide 604800 by 10 and then 9 and so on until I get 1 as a result of that division , The problem is this way isn't helpful with all permutations I have in my study , some times it gets tricky .
 
Mathematics news on Phys.org
  • #2
Notice that 604,800 is divisible by 100, which means that 10 must be one of the numbers in the factors that multiply to give [itex]^nP_7[/itex]. This is because we only have one prime factor of 5 which can couple with a prime factor of 2 in various ways, such as from 4 or 6 or 8, and that would give a factor of 10, so the other factor of 10 must be from 10 itself, or even 15 (the factor of 5 coupled with another 2 elsewhere). However, 15*14*...*9 is composed of 7 factors that are all mostly larger than 10, so the result is going to be larger than 107 = 10,000,000 which is much too large. So we only have a few to test, starting at 10*9*...*4 and working our way upwards from there. We actually find that n=10 gives the answer, but if for argument's sake we had to solve, say,

[itex]^nP_7=3,991,680[/itex]

Then we know that n=15 is again too large, but now it's also not divisible by 100 any more, which means we're missing a prime factor of 5, and how can that happen? Only with
12*11*...*6
13*12*...*7
14*13*...*8
n being one larger or smaller than these possibilities and we'd end up with the factor of 5 in 5 or 15 and the result would be divisible by 100. So given just a few values to test, the result should be quick to find.
 
  • Like
Likes Nader AbdlGhani
  • #3
Mentallic said:
Notice that 604,800 is divisible by 100, which means that 10 must be one of the numbers in the factors that multiply to give [itex]^nP_7[/itex]. This is because we only have one prime factor of 5 which can couple with a prime factor of 2 in various ways, such as from 4 or 6 or 8, and that would give a factor of 10, so the other factor of 10 must be from 10 itself, or even 15 (the factor of 5 coupled with another 2 elsewhere). However, 15*14*...*9 is composed of 7 factors that are all mostly larger than 10, so the result is going to be larger than 107 = 10,000,000 which is much too large. So we only have a few to test, starting at 10*9*...*4 and working our way upwards from there. We actually find that n=10 gives the answer, but if for argument's sake we had to solve, say,

[itex]^nP_7=3,991,680[/itex]

Then we know that n=15 is again too large, but now it's also not divisible by 100 any more, which means we're missing a prime factor of 5, and how can that happen? Only with
12*11*...*6
13*12*...*7
14*13*...*8
n being one larger or smaller than these possibilities and we'd end up with the factor of 5 in 5 or 15 and the result would be divisible by 100. So given just a few values to test, the result should be quick to find.
Thanks for your help :D
 
  • #4
Nader AbdlGhani said:
Thanks for your help :D
You're welcome!
 
  • #5
How about finding the factorization of 604800 as a product of primes? Then divide by 2!, then by 3! , etc.
 

1. What is a permutation?

A permutation is a way of arranging a set of objects or elements in a specific order. It is a mathematical concept that is used in various fields, including statistics, combinatorics, and computer science.

2. What is the difference between a permutation and a combination?

A permutation is an arrangement where the order of the elements matters, while a combination is an arrangement where the order does not matter. For example, the permutations of the letters "ABC" would include "ABC", "ACB", "BAC", etc., while the combinations would include "ABC", "AC", "BC", etc.

3. What is the formula for calculating permutations?

The formula for calculating permutations is n! / (n - r)!, where n is the total number of elements and r is the number of elements being arranged. This formula assumes that all elements are unique and the order matters. For example, if you have 5 objects and want to arrange 3 of them, the formula would be 5! / (5 - 3)! = 60.

4. Can a permutation have repeated elements?

Yes, a permutation can have repeated elements. For example, if you have the letters "AAB", the permutations would include "AAB", "ABA", and "BAA". In this case, the order of the repeated elements matters.

5. How are permutations used in real life?

Permutations are used in various real-life scenarios, such as creating passwords, designing experiments, and analyzing data. For example, in password creation, the different combinations of letters, numbers, and symbols can be seen as permutations. In experiments, researchers may use permutations to determine the order in which participants receive treatments. In data analysis, permutations can be used to generate random samples for hypothesis testing.

Similar threads

  • General Math
Replies
1
Views
718
Replies
5
Views
2K
Replies
16
Views
9K
Replies
7
Views
1K
  • General Math
Replies
2
Views
1K
Replies
3
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
4K
Replies
2
Views
628
Replies
4
Views
409
Replies
4
Views
1K
Back
Top