Number ways of arranging dots and lines with restriction
$begingroup$
I have this problem where I need to calculate the following:
For x dots and y lines, how many arrangements are possible such that no more than n dots are together?
Can anyone help me out?
combinatorics discrete-mathematics permutations
$endgroup$
add a comment |
$begingroup$
I have this problem where I need to calculate the following:
For x dots and y lines, how many arrangements are possible such that no more than n dots are together?
Can anyone help me out?
combinatorics discrete-mathematics permutations
$endgroup$
add a comment |
$begingroup$
I have this problem where I need to calculate the following:
For x dots and y lines, how many arrangements are possible such that no more than n dots are together?
Can anyone help me out?
combinatorics discrete-mathematics permutations
$endgroup$
I have this problem where I need to calculate the following:
For x dots and y lines, how many arrangements are possible such that no more than n dots are together?
Can anyone help me out?
combinatorics discrete-mathematics permutations
combinatorics discrete-mathematics permutations
edited Dec 13 '18 at 4:46
Harry
asked Dec 13 '18 at 4:03
HarryHarry
12
12
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
First put all the lines, like this | | | | |
Then, out of y lines,$y+1$ gaps will be created (including end spaces). Maximum number of dots in each gap is $n$.
Now, let the number of dots in $i$th gap is $x_i$.
Required number of ways is the number of non-negative solutions of the equation
$$x_1+x_2+...+x_{y+1}=x$$
Where $x_ileq n forall i$, now you can easily do it by finding the coefficient of $m^x$ in the expansion of $(1+m+m^2+...+m^n)^{y+1}$.
Hope it is helpful:)
$endgroup$
$begingroup$
In the case where x = 4, n = 5 and y = 1, the restriction of n basically doesn't come into effect, so we can just calculate the possibilities the normal way: Arrangements = 6C1 = 6. Using your method, I would get 10C4 = 210, which is not the same. Is there something more which we need to consider with your method?
$endgroup$
– Harry
Dec 13 '18 at 4:34
$begingroup$
This method treats different “spots” in the same gap as distinct. But they should not be; you’re significantly overcounting.
$endgroup$
– platty
Dec 13 '18 at 4:49
$begingroup$
Ok, I have edited it to correct.
$endgroup$
– Martund
Dec 13 '18 at 5:29
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%2f3037582%2fnumber-ways-of-arranging-dots-and-lines-with-restriction%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
First put all the lines, like this | | | | |
Then, out of y lines,$y+1$ gaps will be created (including end spaces). Maximum number of dots in each gap is $n$.
Now, let the number of dots in $i$th gap is $x_i$.
Required number of ways is the number of non-negative solutions of the equation
$$x_1+x_2+...+x_{y+1}=x$$
Where $x_ileq n forall i$, now you can easily do it by finding the coefficient of $m^x$ in the expansion of $(1+m+m^2+...+m^n)^{y+1}$.
Hope it is helpful:)
$endgroup$
$begingroup$
In the case where x = 4, n = 5 and y = 1, the restriction of n basically doesn't come into effect, so we can just calculate the possibilities the normal way: Arrangements = 6C1 = 6. Using your method, I would get 10C4 = 210, which is not the same. Is there something more which we need to consider with your method?
$endgroup$
– Harry
Dec 13 '18 at 4:34
$begingroup$
This method treats different “spots” in the same gap as distinct. But they should not be; you’re significantly overcounting.
$endgroup$
– platty
Dec 13 '18 at 4:49
$begingroup$
Ok, I have edited it to correct.
$endgroup$
– Martund
Dec 13 '18 at 5:29
add a comment |
$begingroup$
First put all the lines, like this | | | | |
Then, out of y lines,$y+1$ gaps will be created (including end spaces). Maximum number of dots in each gap is $n$.
Now, let the number of dots in $i$th gap is $x_i$.
Required number of ways is the number of non-negative solutions of the equation
$$x_1+x_2+...+x_{y+1}=x$$
Where $x_ileq n forall i$, now you can easily do it by finding the coefficient of $m^x$ in the expansion of $(1+m+m^2+...+m^n)^{y+1}$.
Hope it is helpful:)
$endgroup$
$begingroup$
In the case where x = 4, n = 5 and y = 1, the restriction of n basically doesn't come into effect, so we can just calculate the possibilities the normal way: Arrangements = 6C1 = 6. Using your method, I would get 10C4 = 210, which is not the same. Is there something more which we need to consider with your method?
$endgroup$
– Harry
Dec 13 '18 at 4:34
$begingroup$
This method treats different “spots” in the same gap as distinct. But they should not be; you’re significantly overcounting.
$endgroup$
– platty
Dec 13 '18 at 4:49
$begingroup$
Ok, I have edited it to correct.
$endgroup$
– Martund
Dec 13 '18 at 5:29
add a comment |
$begingroup$
First put all the lines, like this | | | | |
Then, out of y lines,$y+1$ gaps will be created (including end spaces). Maximum number of dots in each gap is $n$.
Now, let the number of dots in $i$th gap is $x_i$.
Required number of ways is the number of non-negative solutions of the equation
$$x_1+x_2+...+x_{y+1}=x$$
Where $x_ileq n forall i$, now you can easily do it by finding the coefficient of $m^x$ in the expansion of $(1+m+m^2+...+m^n)^{y+1}$.
Hope it is helpful:)
$endgroup$
First put all the lines, like this | | | | |
Then, out of y lines,$y+1$ gaps will be created (including end spaces). Maximum number of dots in each gap is $n$.
Now, let the number of dots in $i$th gap is $x_i$.
Required number of ways is the number of non-negative solutions of the equation
$$x_1+x_2+...+x_{y+1}=x$$
Where $x_ileq n forall i$, now you can easily do it by finding the coefficient of $m^x$ in the expansion of $(1+m+m^2+...+m^n)^{y+1}$.
Hope it is helpful:)
edited Dec 13 '18 at 5:42
answered Dec 13 '18 at 4:13
MartundMartund
1,633213
1,633213
$begingroup$
In the case where x = 4, n = 5 and y = 1, the restriction of n basically doesn't come into effect, so we can just calculate the possibilities the normal way: Arrangements = 6C1 = 6. Using your method, I would get 10C4 = 210, which is not the same. Is there something more which we need to consider with your method?
$endgroup$
– Harry
Dec 13 '18 at 4:34
$begingroup$
This method treats different “spots” in the same gap as distinct. But they should not be; you’re significantly overcounting.
$endgroup$
– platty
Dec 13 '18 at 4:49
$begingroup$
Ok, I have edited it to correct.
$endgroup$
– Martund
Dec 13 '18 at 5:29
add a comment |
$begingroup$
In the case where x = 4, n = 5 and y = 1, the restriction of n basically doesn't come into effect, so we can just calculate the possibilities the normal way: Arrangements = 6C1 = 6. Using your method, I would get 10C4 = 210, which is not the same. Is there something more which we need to consider with your method?
$endgroup$
– Harry
Dec 13 '18 at 4:34
$begingroup$
This method treats different “spots” in the same gap as distinct. But they should not be; you’re significantly overcounting.
$endgroup$
– platty
Dec 13 '18 at 4:49
$begingroup$
Ok, I have edited it to correct.
$endgroup$
– Martund
Dec 13 '18 at 5:29
$begingroup$
In the case where x = 4, n = 5 and y = 1, the restriction of n basically doesn't come into effect, so we can just calculate the possibilities the normal way: Arrangements = 6C1 = 6. Using your method, I would get 10C4 = 210, which is not the same. Is there something more which we need to consider with your method?
$endgroup$
– Harry
Dec 13 '18 at 4:34
$begingroup$
In the case where x = 4, n = 5 and y = 1, the restriction of n basically doesn't come into effect, so we can just calculate the possibilities the normal way: Arrangements = 6C1 = 6. Using your method, I would get 10C4 = 210, which is not the same. Is there something more which we need to consider with your method?
$endgroup$
– Harry
Dec 13 '18 at 4:34
$begingroup$
This method treats different “spots” in the same gap as distinct. But they should not be; you’re significantly overcounting.
$endgroup$
– platty
Dec 13 '18 at 4:49
$begingroup$
This method treats different “spots” in the same gap as distinct. But they should not be; you’re significantly overcounting.
$endgroup$
– platty
Dec 13 '18 at 4:49
$begingroup$
Ok, I have edited it to correct.
$endgroup$
– Martund
Dec 13 '18 at 5:29
$begingroup$
Ok, I have edited it to correct.
$endgroup$
– Martund
Dec 13 '18 at 5:29
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%2f3037582%2fnumber-ways-of-arranging-dots-and-lines-with-restriction%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