How many strings of four decimal digits do not contain the same digit twice?

Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I want to check whether my concept and answer is right
I am considering strings of four decimal digits that contain the same digit twice. With this,
I have the possibilities of $xxyz,xyxz,yxxz,yxzx,yzxx,xyzx$ where $x$ is the same digit, and $y, z$ are randomly different decimal digits taken.
So $10 cdot 1 cdot 9 cdot 8 = 720$ and $6$ possibilities, then $720 cdot 6 = 4320$ ways.
Now consider digits that have pattern $xxyy, yyxx,xyxy,yxxy,yxyx,xyyx$, here $10 cdot 1 cdot 9 cdot 9=810 cdot 6= 4860$ ways.
Then total combinations are $10^4 =10000$ then $10000-4320-4860=820$ ways .
combinatorics
 |Â
show 5 more comments
up vote
1
down vote
favorite
I want to check whether my concept and answer is right
I am considering strings of four decimal digits that contain the same digit twice. With this,
I have the possibilities of $xxyz,xyxz,yxxz,yxzx,yzxx,xyzx$ where $x$ is the same digit, and $y, z$ are randomly different decimal digits taken.
So $10 cdot 1 cdot 9 cdot 8 = 720$ and $6$ possibilities, then $720 cdot 6 = 4320$ ways.
Now consider digits that have pattern $xxyy, yyxx,xyxy,yxxy,yxyx,xyyx$, here $10 cdot 1 cdot 9 cdot 9=810 cdot 6= 4860$ ways.
Then total combinations are $10^4 =10000$ then $10000-4320-4860=820$ ways .
combinatorics
1
Why not calculate the probability that no number is repeated?
â Mohammad Zuhair Khan
Sep 8 at 6:26
@MohammadZuhairKhan I suspect it concerns the number of strings that do not contain the same digit exactly $2$ times.
â drhab
Sep 8 at 6:30
Oh, the wording confused me. Pardon
â Mohammad Zuhair Khan
Sep 8 at 6:31
Welcome to MathSE. Please read this tutorial on how to typeset mathematics on this site.
â N. F. Taussig
Sep 8 at 6:41
1
Do you mean how many strings of four decimal digits do not contain the same digit twice or exactly twice?
â N. F. Taussig
Sep 8 at 6:46
 |Â
show 5 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I want to check whether my concept and answer is right
I am considering strings of four decimal digits that contain the same digit twice. With this,
I have the possibilities of $xxyz,xyxz,yxxz,yxzx,yzxx,xyzx$ where $x$ is the same digit, and $y, z$ are randomly different decimal digits taken.
So $10 cdot 1 cdot 9 cdot 8 = 720$ and $6$ possibilities, then $720 cdot 6 = 4320$ ways.
Now consider digits that have pattern $xxyy, yyxx,xyxy,yxxy,yxyx,xyyx$, here $10 cdot 1 cdot 9 cdot 9=810 cdot 6= 4860$ ways.
Then total combinations are $10^4 =10000$ then $10000-4320-4860=820$ ways .
combinatorics
I want to check whether my concept and answer is right
I am considering strings of four decimal digits that contain the same digit twice. With this,
I have the possibilities of $xxyz,xyxz,yxxz,yxzx,yzxx,xyzx$ where $x$ is the same digit, and $y, z$ are randomly different decimal digits taken.
So $10 cdot 1 cdot 9 cdot 8 = 720$ and $6$ possibilities, then $720 cdot 6 = 4320$ ways.
Now consider digits that have pattern $xxyy, yyxx,xyxy,yxxy,yxyx,xyyx$, here $10 cdot 1 cdot 9 cdot 9=810 cdot 6= 4860$ ways.
Then total combinations are $10^4 =10000$ then $10000-4320-4860=820$ ways .
combinatorics
combinatorics
edited Sep 8 at 11:23
asked Sep 8 at 6:19
Avni Sharma
62
62
1
Why not calculate the probability that no number is repeated?
â Mohammad Zuhair Khan
Sep 8 at 6:26
@MohammadZuhairKhan I suspect it concerns the number of strings that do not contain the same digit exactly $2$ times.
â drhab
Sep 8 at 6:30
Oh, the wording confused me. Pardon
â Mohammad Zuhair Khan
Sep 8 at 6:31
Welcome to MathSE. Please read this tutorial on how to typeset mathematics on this site.
â N. F. Taussig
Sep 8 at 6:41
1
Do you mean how many strings of four decimal digits do not contain the same digit twice or exactly twice?
â N. F. Taussig
Sep 8 at 6:46
 |Â
show 5 more comments
1
Why not calculate the probability that no number is repeated?
â Mohammad Zuhair Khan
Sep 8 at 6:26
@MohammadZuhairKhan I suspect it concerns the number of strings that do not contain the same digit exactly $2$ times.
â drhab
Sep 8 at 6:30
Oh, the wording confused me. Pardon
â Mohammad Zuhair Khan
Sep 8 at 6:31
Welcome to MathSE. Please read this tutorial on how to typeset mathematics on this site.
â N. F. Taussig
Sep 8 at 6:41
1
Do you mean how many strings of four decimal digits do not contain the same digit twice or exactly twice?
â N. F. Taussig
Sep 8 at 6:46
1
1
Why not calculate the probability that no number is repeated?
â Mohammad Zuhair Khan
Sep 8 at 6:26
Why not calculate the probability that no number is repeated?
â Mohammad Zuhair Khan
Sep 8 at 6:26
@MohammadZuhairKhan I suspect it concerns the number of strings that do not contain the same digit exactly $2$ times.
â drhab
Sep 8 at 6:30
@MohammadZuhairKhan I suspect it concerns the number of strings that do not contain the same digit exactly $2$ times.
â drhab
Sep 8 at 6:30
Oh, the wording confused me. Pardon
â Mohammad Zuhair Khan
Sep 8 at 6:31
Oh, the wording confused me. Pardon
â Mohammad Zuhair Khan
Sep 8 at 6:31
Welcome to MathSE. Please read this tutorial on how to typeset mathematics on this site.
â N. F. Taussig
Sep 8 at 6:41
Welcome to MathSE. Please read this tutorial on how to typeset mathematics on this site.
â N. F. Taussig
Sep 8 at 6:41
1
1
Do you mean how many strings of four decimal digits do not contain the same digit twice or exactly twice?
â N. F. Taussig
Sep 8 at 6:46
Do you mean how many strings of four decimal digits do not contain the same digit twice or exactly twice?
â N. F. Taussig
Sep 8 at 6:46
 |Â
show 5 more comments
1 Answer
1
active
oldest
votes
up vote
0
down vote
Your title is ambiguous (see the comment of Mohammad) and I preassume that it concerns the number of strings that have the property that no digit appears exactly $2$ times.
Where it concerns strings that have $3$ distinct digits your calculation with outcome $$binom42cdot10cdot9cdot8=4320$$ is correct.
Where it concerns strings that have $2$ distinct digits that both appear twice the outcome should be: $$frac12binom42cdot10cdot9=270$$
You (maybe accidently) have $2$ factors $9$ instead of $1$ and did not repair double counting.
You could also reason that there are not $6$ but $3$ patterns there ($xxyy$,$xyxy$ and $xyyx$) and this with $10$ choices for $x$ and $9$ remaining choices for $y$.
Thanks here, I understood the fact.
â Avni Sharma
Sep 8 at 7:19
You are welcome.
â drhab
Sep 8 at 7:23
I want to know , what will be the answer in this case ,when we are assuming same digit exactly twice.
â Avni Sharma
Sep 8 at 7:23
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Your title is ambiguous (see the comment of Mohammad) and I preassume that it concerns the number of strings that have the property that no digit appears exactly $2$ times.
Where it concerns strings that have $3$ distinct digits your calculation with outcome $$binom42cdot10cdot9cdot8=4320$$ is correct.
Where it concerns strings that have $2$ distinct digits that both appear twice the outcome should be: $$frac12binom42cdot10cdot9=270$$
You (maybe accidently) have $2$ factors $9$ instead of $1$ and did not repair double counting.
You could also reason that there are not $6$ but $3$ patterns there ($xxyy$,$xyxy$ and $xyyx$) and this with $10$ choices for $x$ and $9$ remaining choices for $y$.
Thanks here, I understood the fact.
â Avni Sharma
Sep 8 at 7:19
You are welcome.
â drhab
Sep 8 at 7:23
I want to know , what will be the answer in this case ,when we are assuming same digit exactly twice.
â Avni Sharma
Sep 8 at 7:23
add a comment |Â
up vote
0
down vote
Your title is ambiguous (see the comment of Mohammad) and I preassume that it concerns the number of strings that have the property that no digit appears exactly $2$ times.
Where it concerns strings that have $3$ distinct digits your calculation with outcome $$binom42cdot10cdot9cdot8=4320$$ is correct.
Where it concerns strings that have $2$ distinct digits that both appear twice the outcome should be: $$frac12binom42cdot10cdot9=270$$
You (maybe accidently) have $2$ factors $9$ instead of $1$ and did not repair double counting.
You could also reason that there are not $6$ but $3$ patterns there ($xxyy$,$xyxy$ and $xyyx$) and this with $10$ choices for $x$ and $9$ remaining choices for $y$.
Thanks here, I understood the fact.
â Avni Sharma
Sep 8 at 7:19
You are welcome.
â drhab
Sep 8 at 7:23
I want to know , what will be the answer in this case ,when we are assuming same digit exactly twice.
â Avni Sharma
Sep 8 at 7:23
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Your title is ambiguous (see the comment of Mohammad) and I preassume that it concerns the number of strings that have the property that no digit appears exactly $2$ times.
Where it concerns strings that have $3$ distinct digits your calculation with outcome $$binom42cdot10cdot9cdot8=4320$$ is correct.
Where it concerns strings that have $2$ distinct digits that both appear twice the outcome should be: $$frac12binom42cdot10cdot9=270$$
You (maybe accidently) have $2$ factors $9$ instead of $1$ and did not repair double counting.
You could also reason that there are not $6$ but $3$ patterns there ($xxyy$,$xyxy$ and $xyyx$) and this with $10$ choices for $x$ and $9$ remaining choices for $y$.
Your title is ambiguous (see the comment of Mohammad) and I preassume that it concerns the number of strings that have the property that no digit appears exactly $2$ times.
Where it concerns strings that have $3$ distinct digits your calculation with outcome $$binom42cdot10cdot9cdot8=4320$$ is correct.
Where it concerns strings that have $2$ distinct digits that both appear twice the outcome should be: $$frac12binom42cdot10cdot9=270$$
You (maybe accidently) have $2$ factors $9$ instead of $1$ and did not repair double counting.
You could also reason that there are not $6$ but $3$ patterns there ($xxyy$,$xyxy$ and $xyyx$) and this with $10$ choices for $x$ and $9$ remaining choices for $y$.
answered Sep 8 at 7:00
drhab
89.3k541123
89.3k541123
Thanks here, I understood the fact.
â Avni Sharma
Sep 8 at 7:19
You are welcome.
â drhab
Sep 8 at 7:23
I want to know , what will be the answer in this case ,when we are assuming same digit exactly twice.
â Avni Sharma
Sep 8 at 7:23
add a comment |Â
Thanks here, I understood the fact.
â Avni Sharma
Sep 8 at 7:19
You are welcome.
â drhab
Sep 8 at 7:23
I want to know , what will be the answer in this case ,when we are assuming same digit exactly twice.
â Avni Sharma
Sep 8 at 7:23
Thanks here, I understood the fact.
â Avni Sharma
Sep 8 at 7:19
Thanks here, I understood the fact.
â Avni Sharma
Sep 8 at 7:19
You are welcome.
â drhab
Sep 8 at 7:23
You are welcome.
â drhab
Sep 8 at 7:23
I want to know , what will be the answer in this case ,when we are assuming same digit exactly twice.
â Avni Sharma
Sep 8 at 7:23
I want to know , what will be the answer in this case ,when we are assuming same digit exactly twice.
â Avni Sharma
Sep 8 at 7:23
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2909335%2fhow-many-strings-of-four-decimal-digits-do-not-contain-the-same-digit-twice%23new-answer', 'question_page');
);
Post as a guest
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
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
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
1
Why not calculate the probability that no number is repeated?
â Mohammad Zuhair Khan
Sep 8 at 6:26
@MohammadZuhairKhan I suspect it concerns the number of strings that do not contain the same digit exactly $2$ times.
â drhab
Sep 8 at 6:30
Oh, the wording confused me. Pardon
â Mohammad Zuhair Khan
Sep 8 at 6:31
Welcome to MathSE. Please read this tutorial on how to typeset mathematics on this site.
â N. F. Taussig
Sep 8 at 6:41
1
Do you mean how many strings of four decimal digits do not contain the same digit twice or exactly twice?
â N. F. Taussig
Sep 8 at 6:46