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

The name of the pictureThe name of the pictureThe name of the pictureClash 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 .










share|cite|improve this question



















  • 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














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 .










share|cite|improve this question



















  • 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












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 .










share|cite|improve this question















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






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








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












  • 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










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






share|cite|improve this answer




















  • 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










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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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






























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






share|cite|improve this answer




















  • 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














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






share|cite|improve this answer




















  • 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












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






share|cite|improve this answer












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







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










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
















  • 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

















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































這個網誌中的熱門文章

tkz-euclide: tkzDrawCircle[R] not working

How to combine Bézier curves to a surface?

1st Magritte Awards