Output all permutations using 0-9 of of n-size up to 25. [Python] [on hold]getting all product of two 3-digit...
Are babies of evil humanoid species inherently evil?
Distinction between apt-cache and dpkg -l
Is "history" a male-biased word ("his+story")?
Does this video of collapsing warehouse shelves show a real incident?
Accountant/ lawyer will not return my call
Are tamper resistant receptacles really safer?
Is it necessary to separate DC power cables and data cables?
In the late 1940’s to early 1950’s what technology was available that could melt a LOT of ice?
Recommendation letter by significant other if you worked with them professionally?
Why doesn't this Google Translate ad use the word "Translation" instead of "Translate"?
Word for a person who has no opinion about whether god exists
What was the Kree's motivation in Captain Marvel?
Virginia employer terminated employee and wants signing bonus returned
How to draw cubes in a 3 dimensional plane
Database Backup for data and log files
How to secure an aircraft at a transient parking space?
How is the wildcard * interpreted as a command?
What are actual Tesla M60 models used by AWS?
Why was Goose renamed from Chewie for the Captain Marvel film?
What does "the touch of the purple" mean?
How many characters using PHB rules does it take to be able to have access to any PHB spell at the start of an adventuring day?
What problems would a superhuman have whose skin is constantly hot?
Signed and unsigned numbers
Can one live in the U.S. and not use a credit card?
Output all permutations using 0-9 of of n-size up to 25. [Python] [on hold]
getting all product of two 3-digit numbersProve why this algorithm to compute all list permutations worksHow do I calculate the number of permutations of the list $(6, 6 ,5, 4)$?Possible Ecommerce Product, Size, and Option combinationsCalculate number of permutations in a setPermutations of 3 digit numbers divisible by 5Finding the Total number of permutation using a selective formulaCombinatorics : relationship between Combinations and Permutations with similar objects3 digit permutations with no duplicate combination of 0-9 in PythonCombinations with repetitons and order matters
$begingroup$
Solving a problem in which I need to generate all possible permutations using the elements [0-9] of a number of n-size up o 25; where repetition is allowed. I've been using Python with different algorithm types, but they using a list type approach; permutation [A,B]: would result in AB, BA.
The function I'm after would be to permutation all combinations of a n-char/digit length using the element set Z, where Z is [0-9].
I've calculated approx. 11 septillion+ unique numbers would be generated.
n = 1: 10 numbers
n = 2: 100 numbers
n = 3: 1000 numbers
...
permutations combinations
$endgroup$
put on hold as unclear what you're asking by Ross Millikan, Wrzlprmft, Cesareo, Learnmore, uniquesolution 2 days ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
$begingroup$
Solving a problem in which I need to generate all possible permutations using the elements [0-9] of a number of n-size up o 25; where repetition is allowed. I've been using Python with different algorithm types, but they using a list type approach; permutation [A,B]: would result in AB, BA.
The function I'm after would be to permutation all combinations of a n-char/digit length using the element set Z, where Z is [0-9].
I've calculated approx. 11 septillion+ unique numbers would be generated.
n = 1: 10 numbers
n = 2: 100 numbers
n = 3: 1000 numbers
...
permutations combinations
$endgroup$
put on hold as unclear what you're asking by Ross Millikan, Wrzlprmft, Cesareo, Learnmore, uniquesolution 2 days ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
$begingroup$
What is wrong with range(pow(10,25))? You won't finish them before the sun goes supernova. Voting to close as not about mathematics
$endgroup$
– Ross Millikan
2 days ago
$begingroup$
I am voting to close this for lack of a question (as in: request for information).
$endgroup$
– Wrzlprmft
2 days ago
add a comment |
$begingroup$
Solving a problem in which I need to generate all possible permutations using the elements [0-9] of a number of n-size up o 25; where repetition is allowed. I've been using Python with different algorithm types, but they using a list type approach; permutation [A,B]: would result in AB, BA.
The function I'm after would be to permutation all combinations of a n-char/digit length using the element set Z, where Z is [0-9].
I've calculated approx. 11 septillion+ unique numbers would be generated.
n = 1: 10 numbers
n = 2: 100 numbers
n = 3: 1000 numbers
...
permutations combinations
$endgroup$
Solving a problem in which I need to generate all possible permutations using the elements [0-9] of a number of n-size up o 25; where repetition is allowed. I've been using Python with different algorithm types, but they using a list type approach; permutation [A,B]: would result in AB, BA.
The function I'm after would be to permutation all combinations of a n-char/digit length using the element set Z, where Z is [0-9].
I've calculated approx. 11 septillion+ unique numbers would be generated.
n = 1: 10 numbers
n = 2: 100 numbers
n = 3: 1000 numbers
...
permutations combinations
permutations combinations
asked Jun 3 '15 at 16:35
EllxEllx
1
1
put on hold as unclear what you're asking by Ross Millikan, Wrzlprmft, Cesareo, Learnmore, uniquesolution 2 days ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as unclear what you're asking by Ross Millikan, Wrzlprmft, Cesareo, Learnmore, uniquesolution 2 days ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
$begingroup$
What is wrong with range(pow(10,25))? You won't finish them before the sun goes supernova. Voting to close as not about mathematics
$endgroup$
– Ross Millikan
2 days ago
$begingroup$
I am voting to close this for lack of a question (as in: request for information).
$endgroup$
– Wrzlprmft
2 days ago
add a comment |
$begingroup$
What is wrong with range(pow(10,25))? You won't finish them before the sun goes supernova. Voting to close as not about mathematics
$endgroup$
– Ross Millikan
2 days ago
$begingroup$
I am voting to close this for lack of a question (as in: request for information).
$endgroup$
– Wrzlprmft
2 days ago
$begingroup$
What is wrong with range(pow(10,25))? You won't finish them before the sun goes supernova. Voting to close as not about mathematics
$endgroup$
– Ross Millikan
2 days ago
$begingroup$
What is wrong with range(pow(10,25))? You won't finish them before the sun goes supernova. Voting to close as not about mathematics
$endgroup$
– Ross Millikan
2 days ago
$begingroup$
I am voting to close this for lack of a question (as in: request for information).
$endgroup$
– Wrzlprmft
2 days ago
$begingroup$
I am voting to close this for lack of a question (as in: request for information).
$endgroup$
– Wrzlprmft
2 days ago
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
When you want to look for all the possible permutations with the numbers from $0$ to $9$ when you take $n$ of them and they can repeat, basically what you are doing is taking all numbers from $0$ to $10^{n+1}-1$, and there are $10^{n+1}$ numbers there.
Still though, in case you want the formula for different number of elements (rather than from $0$ to $9$), for permutations with repetition of $k$ different elements when you take $n$, is
$$PR_k^n=k^n$$
$endgroup$
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
When you want to look for all the possible permutations with the numbers from $0$ to $9$ when you take $n$ of them and they can repeat, basically what you are doing is taking all numbers from $0$ to $10^{n+1}-1$, and there are $10^{n+1}$ numbers there.
Still though, in case you want the formula for different number of elements (rather than from $0$ to $9$), for permutations with repetition of $k$ different elements when you take $n$, is
$$PR_k^n=k^n$$
$endgroup$
add a comment |
$begingroup$
When you want to look for all the possible permutations with the numbers from $0$ to $9$ when you take $n$ of them and they can repeat, basically what you are doing is taking all numbers from $0$ to $10^{n+1}-1$, and there are $10^{n+1}$ numbers there.
Still though, in case you want the formula for different number of elements (rather than from $0$ to $9$), for permutations with repetition of $k$ different elements when you take $n$, is
$$PR_k^n=k^n$$
$endgroup$
add a comment |
$begingroup$
When you want to look for all the possible permutations with the numbers from $0$ to $9$ when you take $n$ of them and they can repeat, basically what you are doing is taking all numbers from $0$ to $10^{n+1}-1$, and there are $10^{n+1}$ numbers there.
Still though, in case you want the formula for different number of elements (rather than from $0$ to $9$), for permutations with repetition of $k$ different elements when you take $n$, is
$$PR_k^n=k^n$$
$endgroup$
When you want to look for all the possible permutations with the numbers from $0$ to $9$ when you take $n$ of them and they can repeat, basically what you are doing is taking all numbers from $0$ to $10^{n+1}-1$, and there are $10^{n+1}$ numbers there.
Still though, in case you want the formula for different number of elements (rather than from $0$ to $9$), for permutations with repetition of $k$ different elements when you take $n$, is
$$PR_k^n=k^n$$
answered Jun 3 '15 at 19:28
MasclinsMasclins
994721
994721
add a comment |
add a comment |
$begingroup$
What is wrong with range(pow(10,25))? You won't finish them before the sun goes supernova. Voting to close as not about mathematics
$endgroup$
– Ross Millikan
2 days ago
$begingroup$
I am voting to close this for lack of a question (as in: request for information).
$endgroup$
– Wrzlprmft
2 days ago