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













-1












$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
...










share|cite|improve this question









$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
















-1












$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
...










share|cite|improve this question









$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














-1












-1








-1





$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
...










share|cite|improve this question









$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






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










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


















  • $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










1 Answer
1






active

oldest

votes


















0












$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$$






share|cite|improve this answer









$endgroup$




















    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0












    $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$$






    share|cite|improve this answer









    $endgroup$


















      0












      $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$$






      share|cite|improve this answer









      $endgroup$
















        0












        0








        0





        $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$$






        share|cite|improve this answer









        $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$$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jun 3 '15 at 19:28









        MasclinsMasclins

        994721




        994721















            Popular posts from this blog

            Magento 2 - Add success message with knockout Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Success / Error message on ajax request$.widget is not a function when loading a homepage after add custom jQuery on custom themeHow can bind jQuery to current document in Magento 2 When template load by ajaxRedirect page using plugin in Magento 2Magento 2 - Update quantity and totals of cart page without page reload?Magento 2: Quote data not loaded on knockout checkoutMagento 2 : I need to change add to cart success message after adding product into cart through pluginMagento 2.2.5 How to add additional products to cart from new checkout step?Magento 2 Add error/success message with knockoutCan't validate Post Code on checkout page

            Fil:Tokke komm.svg

            Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?