Number of five digit numbers that can be formed with this condition The Next CEO of Stack...
Is it ever safe to open a suspicious html file (e.g. email attachment)?
What was the first Unix version to run on a microcomputer?
What can we do to stop prior company from asking us questions?
Sending manuscript to multiple publishers
Are there any unintended negative consequences to allowing PCs to gain multiple levels at once in a short milestone-XP game?
What connection does MS Office have to Netscape Navigator?
How do I go from 300 unfinished/half written blog posts, to published posts?
Written every which way
Does it take more energy to get to Venus or to Mars?
Limits on contract work without pre-agreed price/contract (UK)
Rotate a column
How to solve a differential equation with a term to a power?
Return the Closest Prime Number
Would a galaxy be visible from outside, but nearby?
What exact does MIB represent in SNMP? How is it different from OID?
If a black hole is created from light, can this black hole then move at speed of light?
Interfacing a button to MCU (and PC) with 50m long cable
How does the mv command work with external drives?
Preparing Indesign booklet with .psd graphics for print
Elegant way to replace substring in a regex with optional groups in Python?
Can we say or write : "No, it'sn't"?
Indicator light circuit
Can you replace a racial trait cantrip when leveling up?
Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?
Number of five digit numbers that can be formed with this condition
The Next CEO of Stack Overflow3 digit odd numbers that can be formed using 0,3,5,7 - no repetitionFive digit numbers where each digit can appear up to three timesNumber of $ 6 $ Digit Numbers with Alphabet $ left{ 1, 2, 3, 4 right} $ with Each Digit of the Alphabet Appearing at Least OnceHow many 3 digit numbers can be formed using digits 1,2,3,4 and 5 such that the number is divisible by 6Number of $4$-digit numbers that can be formed with the digits $0,1,2,3,4,5$ with constraint on repetitionNumber of $5$ digit numbers with ascending digitsHow many odd numbers of $5$ digits can be formed with the digits $0,2,3,4,5$ without repetition of any digit?How many five digit numbers divisible by $3$ can be formed using the digits $0,1,2,3,4,7$ and $8$ if each digit is to be used at most onceFive digit number with digits in ascending orderNumber of five digit numbers that can be formed using the digits 1,2,3,4,5,6,7,8,9 in which one digit appears once and two digits appear twice
$begingroup$
Question: How many five digit numbers can be made having the digits 1,2,3 each of which can be used at most thrice in a number?
I did it by assuming that there are 9 digits that can be used (3 '1's, 3 '2's and 3 '3's). The first place can be filled in 9 ways, the second place can be filled in 8 ways and so on. I got 15120 as the answer.
combinatorics permutations
$endgroup$
add a comment |
$begingroup$
Question: How many five digit numbers can be made having the digits 1,2,3 each of which can be used at most thrice in a number?
I did it by assuming that there are 9 digits that can be used (3 '1's, 3 '2's and 3 '3's). The first place can be filled in 9 ways, the second place can be filled in 8 ways and so on. I got 15120 as the answer.
combinatorics permutations
$endgroup$
1
$begingroup$
You are overcounting: The 3 1's are not distinct, but you are treating them as if they are. It may be easier to count the complement. How many five-digit numbers made using $1,2,3$ utilize a digit 4 or more times? Subtract this from $3^5$, which is the total number of $5$-digit numbers you can make using $1,2,3$.
$endgroup$
– Mauve
Mar 16 at 17:16
add a comment |
$begingroup$
Question: How many five digit numbers can be made having the digits 1,2,3 each of which can be used at most thrice in a number?
I did it by assuming that there are 9 digits that can be used (3 '1's, 3 '2's and 3 '3's). The first place can be filled in 9 ways, the second place can be filled in 8 ways and so on. I got 15120 as the answer.
combinatorics permutations
$endgroup$
Question: How many five digit numbers can be made having the digits 1,2,3 each of which can be used at most thrice in a number?
I did it by assuming that there are 9 digits that can be used (3 '1's, 3 '2's and 3 '3's). The first place can be filled in 9 ways, the second place can be filled in 8 ways and so on. I got 15120 as the answer.
combinatorics permutations
combinatorics permutations
edited Mar 16 at 17:28
MrAP
asked Mar 16 at 17:08
MrAPMrAP
1,26321432
1,26321432
1
$begingroup$
You are overcounting: The 3 1's are not distinct, but you are treating them as if they are. It may be easier to count the complement. How many five-digit numbers made using $1,2,3$ utilize a digit 4 or more times? Subtract this from $3^5$, which is the total number of $5$-digit numbers you can make using $1,2,3$.
$endgroup$
– Mauve
Mar 16 at 17:16
add a comment |
1
$begingroup$
You are overcounting: The 3 1's are not distinct, but you are treating them as if they are. It may be easier to count the complement. How many five-digit numbers made using $1,2,3$ utilize a digit 4 or more times? Subtract this from $3^5$, which is the total number of $5$-digit numbers you can make using $1,2,3$.
$endgroup$
– Mauve
Mar 16 at 17:16
1
1
$begingroup$
You are overcounting: The 3 1's are not distinct, but you are treating them as if they are. It may be easier to count the complement. How many five-digit numbers made using $1,2,3$ utilize a digit 4 or more times? Subtract this from $3^5$, which is the total number of $5$-digit numbers you can make using $1,2,3$.
$endgroup$
– Mauve
Mar 16 at 17:16
$begingroup$
You are overcounting: The 3 1's are not distinct, but you are treating them as if they are. It may be easier to count the complement. How many five-digit numbers made using $1,2,3$ utilize a digit 4 or more times? Subtract this from $3^5$, which is the total number of $5$-digit numbers you can make using $1,2,3$.
$endgroup$
– Mauve
Mar 16 at 17:16
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
Unfortunately, you're making distinctions where there aren't any--for example, one digit $1$ is the same as any other, though it may have a different meaning once we choose a place for it.
The first thing I notice about this problem is that, if I want to directly count the desired numbers, there will be several cases and subcases. We could start with the case of no $1$s (with subcases two $2$s and three $2$s), then the case of a single $1$ (with subcases one $2,$ two $2$s, and three $2$s), and so on. That seems like a pain, though.
More straightforwardly, we could figure out how many five-digit numbers can be made from only digits in ${1,2,3},$ then figure out how many of these we don't want--that is, those with four or more $1$s, $2$s, or $3$s--and subtract it from the total.
Hopefully the following facts are clear:
- There are $3^5=243$ five-digit numbers with only digits in ${1,2,3}.$
- Our "bad" numbers can only break one rule at a time--so we can't, for example, have more than three $1$s and more than three $3$s in a five-digit number--so we won't have to worry about over-counting our "bad" numbers.
- There are exactly the same amount of numbers with too many $1$s as there are with too many $2$s, and as there are with too many $3$s.
How many break the rule with too many $1$s? Well, only one can have all $1$s, but what about four $1$s? Well, we know that such a number has to have exactly one place that doesn't have a $1,$ and there are two choices for what can be in this place. Can you take it from there?
$endgroup$
add a comment |
$begingroup$
As Mauve suggested in the comment, you could count the bad numbers and subtract their number from the total number of $3^5$. Bad numbers are of the form $xxxxx$ (which can be constructed in only $3$ different ways) of $xxxxy$ and its $5$ permutations (which can be chosen in $3cdot 2cdot 5$ ways), so the total number will be $3^5 - 3 - 30 = 210$.
Also, you can go the straight-forward way. The feasible numbers contain
- two digits once and one digit three times
- one digit twice and another digit three times
- two digits twice and one digit only once
Counting the combinations for all three cases, we get:
$3$ ways to chose the number that will appear tree times, $4$ positions to place the lower of the remaining numbers and $5$ positions to place the last one, a total of $3cdot 4cdot 5 = 60$ different mumbers.
$3$ ways to chose the digit that will appear tree times, $2$ ways to choses the other contained digit and $binom{4}{2}+binom{4}{1} = 10$ ways to place them between the other digits (they are allowed to appear side by side), making a total of $3cdot 2cdot 10 = 60$ different numbers.
$3$ ways to chose the digit that will appear only once, $5$ ways to chose its position in the number and $binom{4}{2} = 6$ ways to chose the positions of the lower remaining digits, making a total of $3cdot 5cdot 6 = 90$ different numbers.
Summing up the three results, we do of course obtain the same result from above: $60+60+90=210$.
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3150593%2fnumber-of-five-digit-numbers-that-can-be-formed-with-this-condition%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Unfortunately, you're making distinctions where there aren't any--for example, one digit $1$ is the same as any other, though it may have a different meaning once we choose a place for it.
The first thing I notice about this problem is that, if I want to directly count the desired numbers, there will be several cases and subcases. We could start with the case of no $1$s (with subcases two $2$s and three $2$s), then the case of a single $1$ (with subcases one $2,$ two $2$s, and three $2$s), and so on. That seems like a pain, though.
More straightforwardly, we could figure out how many five-digit numbers can be made from only digits in ${1,2,3},$ then figure out how many of these we don't want--that is, those with four or more $1$s, $2$s, or $3$s--and subtract it from the total.
Hopefully the following facts are clear:
- There are $3^5=243$ five-digit numbers with only digits in ${1,2,3}.$
- Our "bad" numbers can only break one rule at a time--so we can't, for example, have more than three $1$s and more than three $3$s in a five-digit number--so we won't have to worry about over-counting our "bad" numbers.
- There are exactly the same amount of numbers with too many $1$s as there are with too many $2$s, and as there are with too many $3$s.
How many break the rule with too many $1$s? Well, only one can have all $1$s, but what about four $1$s? Well, we know that such a number has to have exactly one place that doesn't have a $1,$ and there are two choices for what can be in this place. Can you take it from there?
$endgroup$
add a comment |
$begingroup$
Unfortunately, you're making distinctions where there aren't any--for example, one digit $1$ is the same as any other, though it may have a different meaning once we choose a place for it.
The first thing I notice about this problem is that, if I want to directly count the desired numbers, there will be several cases and subcases. We could start with the case of no $1$s (with subcases two $2$s and three $2$s), then the case of a single $1$ (with subcases one $2,$ two $2$s, and three $2$s), and so on. That seems like a pain, though.
More straightforwardly, we could figure out how many five-digit numbers can be made from only digits in ${1,2,3},$ then figure out how many of these we don't want--that is, those with four or more $1$s, $2$s, or $3$s--and subtract it from the total.
Hopefully the following facts are clear:
- There are $3^5=243$ five-digit numbers with only digits in ${1,2,3}.$
- Our "bad" numbers can only break one rule at a time--so we can't, for example, have more than three $1$s and more than three $3$s in a five-digit number--so we won't have to worry about over-counting our "bad" numbers.
- There are exactly the same amount of numbers with too many $1$s as there are with too many $2$s, and as there are with too many $3$s.
How many break the rule with too many $1$s? Well, only one can have all $1$s, but what about four $1$s? Well, we know that such a number has to have exactly one place that doesn't have a $1,$ and there are two choices for what can be in this place. Can you take it from there?
$endgroup$
add a comment |
$begingroup$
Unfortunately, you're making distinctions where there aren't any--for example, one digit $1$ is the same as any other, though it may have a different meaning once we choose a place for it.
The first thing I notice about this problem is that, if I want to directly count the desired numbers, there will be several cases and subcases. We could start with the case of no $1$s (with subcases two $2$s and three $2$s), then the case of a single $1$ (with subcases one $2,$ two $2$s, and three $2$s), and so on. That seems like a pain, though.
More straightforwardly, we could figure out how many five-digit numbers can be made from only digits in ${1,2,3},$ then figure out how many of these we don't want--that is, those with four or more $1$s, $2$s, or $3$s--and subtract it from the total.
Hopefully the following facts are clear:
- There are $3^5=243$ five-digit numbers with only digits in ${1,2,3}.$
- Our "bad" numbers can only break one rule at a time--so we can't, for example, have more than three $1$s and more than three $3$s in a five-digit number--so we won't have to worry about over-counting our "bad" numbers.
- There are exactly the same amount of numbers with too many $1$s as there are with too many $2$s, and as there are with too many $3$s.
How many break the rule with too many $1$s? Well, only one can have all $1$s, but what about four $1$s? Well, we know that such a number has to have exactly one place that doesn't have a $1,$ and there are two choices for what can be in this place. Can you take it from there?
$endgroup$
Unfortunately, you're making distinctions where there aren't any--for example, one digit $1$ is the same as any other, though it may have a different meaning once we choose a place for it.
The first thing I notice about this problem is that, if I want to directly count the desired numbers, there will be several cases and subcases. We could start with the case of no $1$s (with subcases two $2$s and three $2$s), then the case of a single $1$ (with subcases one $2,$ two $2$s, and three $2$s), and so on. That seems like a pain, though.
More straightforwardly, we could figure out how many five-digit numbers can be made from only digits in ${1,2,3},$ then figure out how many of these we don't want--that is, those with four or more $1$s, $2$s, or $3$s--and subtract it from the total.
Hopefully the following facts are clear:
- There are $3^5=243$ five-digit numbers with only digits in ${1,2,3}.$
- Our "bad" numbers can only break one rule at a time--so we can't, for example, have more than three $1$s and more than three $3$s in a five-digit number--so we won't have to worry about over-counting our "bad" numbers.
- There are exactly the same amount of numbers with too many $1$s as there are with too many $2$s, and as there are with too many $3$s.
How many break the rule with too many $1$s? Well, only one can have all $1$s, but what about four $1$s? Well, we know that such a number has to have exactly one place that doesn't have a $1,$ and there are two choices for what can be in this place. Can you take it from there?
answered Mar 16 at 17:38
Cameron BuieCameron Buie
86.3k773161
86.3k773161
add a comment |
add a comment |
$begingroup$
As Mauve suggested in the comment, you could count the bad numbers and subtract their number from the total number of $3^5$. Bad numbers are of the form $xxxxx$ (which can be constructed in only $3$ different ways) of $xxxxy$ and its $5$ permutations (which can be chosen in $3cdot 2cdot 5$ ways), so the total number will be $3^5 - 3 - 30 = 210$.
Also, you can go the straight-forward way. The feasible numbers contain
- two digits once and one digit three times
- one digit twice and another digit three times
- two digits twice and one digit only once
Counting the combinations for all three cases, we get:
$3$ ways to chose the number that will appear tree times, $4$ positions to place the lower of the remaining numbers and $5$ positions to place the last one, a total of $3cdot 4cdot 5 = 60$ different mumbers.
$3$ ways to chose the digit that will appear tree times, $2$ ways to choses the other contained digit and $binom{4}{2}+binom{4}{1} = 10$ ways to place them between the other digits (they are allowed to appear side by side), making a total of $3cdot 2cdot 10 = 60$ different numbers.
$3$ ways to chose the digit that will appear only once, $5$ ways to chose its position in the number and $binom{4}{2} = 6$ ways to chose the positions of the lower remaining digits, making a total of $3cdot 5cdot 6 = 90$ different numbers.
Summing up the three results, we do of course obtain the same result from above: $60+60+90=210$.
$endgroup$
add a comment |
$begingroup$
As Mauve suggested in the comment, you could count the bad numbers and subtract their number from the total number of $3^5$. Bad numbers are of the form $xxxxx$ (which can be constructed in only $3$ different ways) of $xxxxy$ and its $5$ permutations (which can be chosen in $3cdot 2cdot 5$ ways), so the total number will be $3^5 - 3 - 30 = 210$.
Also, you can go the straight-forward way. The feasible numbers contain
- two digits once and one digit three times
- one digit twice and another digit three times
- two digits twice and one digit only once
Counting the combinations for all three cases, we get:
$3$ ways to chose the number that will appear tree times, $4$ positions to place the lower of the remaining numbers and $5$ positions to place the last one, a total of $3cdot 4cdot 5 = 60$ different mumbers.
$3$ ways to chose the digit that will appear tree times, $2$ ways to choses the other contained digit and $binom{4}{2}+binom{4}{1} = 10$ ways to place them between the other digits (they are allowed to appear side by side), making a total of $3cdot 2cdot 10 = 60$ different numbers.
$3$ ways to chose the digit that will appear only once, $5$ ways to chose its position in the number and $binom{4}{2} = 6$ ways to chose the positions of the lower remaining digits, making a total of $3cdot 5cdot 6 = 90$ different numbers.
Summing up the three results, we do of course obtain the same result from above: $60+60+90=210$.
$endgroup$
add a comment |
$begingroup$
As Mauve suggested in the comment, you could count the bad numbers and subtract their number from the total number of $3^5$. Bad numbers are of the form $xxxxx$ (which can be constructed in only $3$ different ways) of $xxxxy$ and its $5$ permutations (which can be chosen in $3cdot 2cdot 5$ ways), so the total number will be $3^5 - 3 - 30 = 210$.
Also, you can go the straight-forward way. The feasible numbers contain
- two digits once and one digit three times
- one digit twice and another digit three times
- two digits twice and one digit only once
Counting the combinations for all three cases, we get:
$3$ ways to chose the number that will appear tree times, $4$ positions to place the lower of the remaining numbers and $5$ positions to place the last one, a total of $3cdot 4cdot 5 = 60$ different mumbers.
$3$ ways to chose the digit that will appear tree times, $2$ ways to choses the other contained digit and $binom{4}{2}+binom{4}{1} = 10$ ways to place them between the other digits (they are allowed to appear side by side), making a total of $3cdot 2cdot 10 = 60$ different numbers.
$3$ ways to chose the digit that will appear only once, $5$ ways to chose its position in the number and $binom{4}{2} = 6$ ways to chose the positions of the lower remaining digits, making a total of $3cdot 5cdot 6 = 90$ different numbers.
Summing up the three results, we do of course obtain the same result from above: $60+60+90=210$.
$endgroup$
As Mauve suggested in the comment, you could count the bad numbers and subtract their number from the total number of $3^5$. Bad numbers are of the form $xxxxx$ (which can be constructed in only $3$ different ways) of $xxxxy$ and its $5$ permutations (which can be chosen in $3cdot 2cdot 5$ ways), so the total number will be $3^5 - 3 - 30 = 210$.
Also, you can go the straight-forward way. The feasible numbers contain
- two digits once and one digit three times
- one digit twice and another digit three times
- two digits twice and one digit only once
Counting the combinations for all three cases, we get:
$3$ ways to chose the number that will appear tree times, $4$ positions to place the lower of the remaining numbers and $5$ positions to place the last one, a total of $3cdot 4cdot 5 = 60$ different mumbers.
$3$ ways to chose the digit that will appear tree times, $2$ ways to choses the other contained digit and $binom{4}{2}+binom{4}{1} = 10$ ways to place them between the other digits (they are allowed to appear side by side), making a total of $3cdot 2cdot 10 = 60$ different numbers.
$3$ ways to chose the digit that will appear only once, $5$ ways to chose its position in the number and $binom{4}{2} = 6$ ways to chose the positions of the lower remaining digits, making a total of $3cdot 5cdot 6 = 90$ different numbers.
Summing up the three results, we do of course obtain the same result from above: $60+60+90=210$.
answered Mar 16 at 18:22
Wolfgang KaisWolfgang Kais
8165
8165
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3150593%2fnumber-of-five-digit-numbers-that-can-be-formed-with-this-condition%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
$begingroup$
You are overcounting: The 3 1's are not distinct, but you are treating them as if they are. It may be easier to count the complement. How many five-digit numbers made using $1,2,3$ utilize a digit 4 or more times? Subtract this from $3^5$, which is the total number of $5$-digit numbers you can make using $1,2,3$.
$endgroup$
– Mauve
Mar 16 at 17:16