$1,2, ldots, n$ are permuted. None of the numbers $1,2,3$ are adjacent and $n>4$.
The numbers $1, 2, ldots, n$ are permuted. How many different permutations exist such that none of the numbers $1, 2, 3$ are adjacent when $n>4$?
Solution:
$4,5, ldots, n$ can be shuffled in $(n-3)!$ ways and $3!$ ways to arrange $1,2,3$. There are $n−2$ slots that are separated by $n−3$ shuffled numbers, and if we insert each of $1,2,3$ into a different slot, they cannot be adjacent. There are $binom{n - 2}{3}$ ways to do this.
Why is it $binom{n-2}{3}$ ways? I don't get the explanation.
combinatorics permutations
add a comment |
The numbers $1, 2, ldots, n$ are permuted. How many different permutations exist such that none of the numbers $1, 2, 3$ are adjacent when $n>4$?
Solution:
$4,5, ldots, n$ can be shuffled in $(n-3)!$ ways and $3!$ ways to arrange $1,2,3$. There are $n−2$ slots that are separated by $n−3$ shuffled numbers, and if we insert each of $1,2,3$ into a different slot, they cannot be adjacent. There are $binom{n - 2}{3}$ ways to do this.
Why is it $binom{n-2}{3}$ ways? I don't get the explanation.
combinatorics permutations
Welcome to MathSE. This tutorial explains how to typeset mathematics on this site.
– N. F. Taussig
Dec 1 at 10:02
Mentioned is that from the $n-2$ slots $3$ are selected to be the slots where exactly one of the numbers $1,2,3$ is inserted. There are $binom{n-2}3$ to select $3$ out of $n-2$, right? Btw, after this observation we are not ready yet with the whole calculation.
– drhab
Dec 1 at 10:09
Have a look at en.wikipedia.org/wiki/Stars_and_bars_(combinatorics)
– Shubham Johri
Dec 1 at 10:23
add a comment |
The numbers $1, 2, ldots, n$ are permuted. How many different permutations exist such that none of the numbers $1, 2, 3$ are adjacent when $n>4$?
Solution:
$4,5, ldots, n$ can be shuffled in $(n-3)!$ ways and $3!$ ways to arrange $1,2,3$. There are $n−2$ slots that are separated by $n−3$ shuffled numbers, and if we insert each of $1,2,3$ into a different slot, they cannot be adjacent. There are $binom{n - 2}{3}$ ways to do this.
Why is it $binom{n-2}{3}$ ways? I don't get the explanation.
combinatorics permutations
The numbers $1, 2, ldots, n$ are permuted. How many different permutations exist such that none of the numbers $1, 2, 3$ are adjacent when $n>4$?
Solution:
$4,5, ldots, n$ can be shuffled in $(n-3)!$ ways and $3!$ ways to arrange $1,2,3$. There are $n−2$ slots that are separated by $n−3$ shuffled numbers, and if we insert each of $1,2,3$ into a different slot, they cannot be adjacent. There are $binom{n - 2}{3}$ ways to do this.
Why is it $binom{n-2}{3}$ ways? I don't get the explanation.
combinatorics permutations
combinatorics permutations
edited Dec 1 at 10:01
N. F. Taussig
43.5k93355
43.5k93355
asked Dec 1 at 9:47
muffin
62
62
Welcome to MathSE. This tutorial explains how to typeset mathematics on this site.
– N. F. Taussig
Dec 1 at 10:02
Mentioned is that from the $n-2$ slots $3$ are selected to be the slots where exactly one of the numbers $1,2,3$ is inserted. There are $binom{n-2}3$ to select $3$ out of $n-2$, right? Btw, after this observation we are not ready yet with the whole calculation.
– drhab
Dec 1 at 10:09
Have a look at en.wikipedia.org/wiki/Stars_and_bars_(combinatorics)
– Shubham Johri
Dec 1 at 10:23
add a comment |
Welcome to MathSE. This tutorial explains how to typeset mathematics on this site.
– N. F. Taussig
Dec 1 at 10:02
Mentioned is that from the $n-2$ slots $3$ are selected to be the slots where exactly one of the numbers $1,2,3$ is inserted. There are $binom{n-2}3$ to select $3$ out of $n-2$, right? Btw, after this observation we are not ready yet with the whole calculation.
– drhab
Dec 1 at 10:09
Have a look at en.wikipedia.org/wiki/Stars_and_bars_(combinatorics)
– Shubham Johri
Dec 1 at 10:23
Welcome to MathSE. This tutorial explains how to typeset mathematics on this site.
– N. F. Taussig
Dec 1 at 10:02
Welcome to MathSE. This tutorial explains how to typeset mathematics on this site.
– N. F. Taussig
Dec 1 at 10:02
Mentioned is that from the $n-2$ slots $3$ are selected to be the slots where exactly one of the numbers $1,2,3$ is inserted. There are $binom{n-2}3$ to select $3$ out of $n-2$, right? Btw, after this observation we are not ready yet with the whole calculation.
– drhab
Dec 1 at 10:09
Mentioned is that from the $n-2$ slots $3$ are selected to be the slots where exactly one of the numbers $1,2,3$ is inserted. There are $binom{n-2}3$ to select $3$ out of $n-2$, right? Btw, after this observation we are not ready yet with the whole calculation.
– drhab
Dec 1 at 10:09
Have a look at en.wikipedia.org/wiki/Stars_and_bars_(combinatorics)
– Shubham Johri
Dec 1 at 10:23
Have a look at en.wikipedia.org/wiki/Stars_and_bars_(combinatorics)
– Shubham Johri
Dec 1 at 10:23
add a comment |
4 Answers
4
active
oldest
votes
Once you arrange $4,5,...,n$ in order, you have to put each of $1$, $2$ and $3$ either in a gap between two other numbers, or at one end of the list. But if you put one of them in a particular gap, or at a particular end, neither of the others can be put in the same place, or they would be adjacent in the final list.
Therefore you need to choose three different places to put $1,2,3$. There are $n-4$ gaps between the other numbers, and two additional places at the end, so $n-2$ places to choose from. The number of ways to choose $3$ things out of $n-2$ is $binom{n-2}3$.
add a comment |
You have $n-3$ numbers leaving $1,2,3$. Imagine you have a row of boxes, where each box denotes one of the $n-3$ numbers. You also have $n-2$ gaps: $n-4$ gaps between the boxes, and $1$ on each end.
$$_ b_1 _ b_2 _ ... _ b_{n-3} _$$
You have to permute the numbers in a manner such that $1,2,3$ are not adjacent to each other. This can be achieved if you select any $3$ distinct gaps out of the $n-2$ gaps to place one of $1,2,3$, since between any two gaps you have one or more boxes, or one or more numbers from the set ${4,5...,n}$, which ensures that $1,2,3$ are never adjacent to each other.
You can select $3$ gaps in $binom{n-2}3$ ways. The numbers in those gaps can permute in $3!$ ways and the remaining numbers can permute in $(n-3)!$ ways, giving you a total of $(n-3)!cdot3!cdotbinom{n-2}3$ ways.
add a comment |
There is a permutation of $1,2,3$ giving factor $3!$
There is a permutation of $4,5,dots n$ giving factor $(n-3)!$
The numbers $4,5,dots,n$ are "separated" (e.g. like $star7star5star4star6star$ if $n=7$) and $n-2$ slots/stars exists.
These stars must looked at as candidates for placing there exactly one of the numbers $1,2,3$.
So we must select $3$ of $n-2$ stars giving factor $binom{n-2}3$.
Then we end up with a total of: $$3!(n-3)!binom{n-2}3$$possibilities.
add a comment |
We can count the cases
- the permutations are n!
from which we need to eliminate the ways
- we can arrange $1,2,3$ adjacent that is: $3!(n-2)(n-3)!$
- we can arrange exactly a pair adjacent that is: $3!(n-3)![(n-3)(n-4)+2(n-3)]=3!(n-3)!(n-3)(n-2)$
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%2f3021175%2f1-2-ldots-n-are-permuted-none-of-the-numbers-1-2-3-are-adjacent-and-n4%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Once you arrange $4,5,...,n$ in order, you have to put each of $1$, $2$ and $3$ either in a gap between two other numbers, or at one end of the list. But if you put one of them in a particular gap, or at a particular end, neither of the others can be put in the same place, or they would be adjacent in the final list.
Therefore you need to choose three different places to put $1,2,3$. There are $n-4$ gaps between the other numbers, and two additional places at the end, so $n-2$ places to choose from. The number of ways to choose $3$ things out of $n-2$ is $binom{n-2}3$.
add a comment |
Once you arrange $4,5,...,n$ in order, you have to put each of $1$, $2$ and $3$ either in a gap between two other numbers, or at one end of the list. But if you put one of them in a particular gap, or at a particular end, neither of the others can be put in the same place, or they would be adjacent in the final list.
Therefore you need to choose three different places to put $1,2,3$. There are $n-4$ gaps between the other numbers, and two additional places at the end, so $n-2$ places to choose from. The number of ways to choose $3$ things out of $n-2$ is $binom{n-2}3$.
add a comment |
Once you arrange $4,5,...,n$ in order, you have to put each of $1$, $2$ and $3$ either in a gap between two other numbers, or at one end of the list. But if you put one of them in a particular gap, or at a particular end, neither of the others can be put in the same place, or they would be adjacent in the final list.
Therefore you need to choose three different places to put $1,2,3$. There are $n-4$ gaps between the other numbers, and two additional places at the end, so $n-2$ places to choose from. The number of ways to choose $3$ things out of $n-2$ is $binom{n-2}3$.
Once you arrange $4,5,...,n$ in order, you have to put each of $1$, $2$ and $3$ either in a gap between two other numbers, or at one end of the list. But if you put one of them in a particular gap, or at a particular end, neither of the others can be put in the same place, or they would be adjacent in the final list.
Therefore you need to choose three different places to put $1,2,3$. There are $n-4$ gaps between the other numbers, and two additional places at the end, so $n-2$ places to choose from. The number of ways to choose $3$ things out of $n-2$ is $binom{n-2}3$.
answered Dec 1 at 10:12
Especially Lime
21.6k22858
21.6k22858
add a comment |
add a comment |
You have $n-3$ numbers leaving $1,2,3$. Imagine you have a row of boxes, where each box denotes one of the $n-3$ numbers. You also have $n-2$ gaps: $n-4$ gaps between the boxes, and $1$ on each end.
$$_ b_1 _ b_2 _ ... _ b_{n-3} _$$
You have to permute the numbers in a manner such that $1,2,3$ are not adjacent to each other. This can be achieved if you select any $3$ distinct gaps out of the $n-2$ gaps to place one of $1,2,3$, since between any two gaps you have one or more boxes, or one or more numbers from the set ${4,5...,n}$, which ensures that $1,2,3$ are never adjacent to each other.
You can select $3$ gaps in $binom{n-2}3$ ways. The numbers in those gaps can permute in $3!$ ways and the remaining numbers can permute in $(n-3)!$ ways, giving you a total of $(n-3)!cdot3!cdotbinom{n-2}3$ ways.
add a comment |
You have $n-3$ numbers leaving $1,2,3$. Imagine you have a row of boxes, where each box denotes one of the $n-3$ numbers. You also have $n-2$ gaps: $n-4$ gaps between the boxes, and $1$ on each end.
$$_ b_1 _ b_2 _ ... _ b_{n-3} _$$
You have to permute the numbers in a manner such that $1,2,3$ are not adjacent to each other. This can be achieved if you select any $3$ distinct gaps out of the $n-2$ gaps to place one of $1,2,3$, since between any two gaps you have one or more boxes, or one or more numbers from the set ${4,5...,n}$, which ensures that $1,2,3$ are never adjacent to each other.
You can select $3$ gaps in $binom{n-2}3$ ways. The numbers in those gaps can permute in $3!$ ways and the remaining numbers can permute in $(n-3)!$ ways, giving you a total of $(n-3)!cdot3!cdotbinom{n-2}3$ ways.
add a comment |
You have $n-3$ numbers leaving $1,2,3$. Imagine you have a row of boxes, where each box denotes one of the $n-3$ numbers. You also have $n-2$ gaps: $n-4$ gaps between the boxes, and $1$ on each end.
$$_ b_1 _ b_2 _ ... _ b_{n-3} _$$
You have to permute the numbers in a manner such that $1,2,3$ are not adjacent to each other. This can be achieved if you select any $3$ distinct gaps out of the $n-2$ gaps to place one of $1,2,3$, since between any two gaps you have one or more boxes, or one or more numbers from the set ${4,5...,n}$, which ensures that $1,2,3$ are never adjacent to each other.
You can select $3$ gaps in $binom{n-2}3$ ways. The numbers in those gaps can permute in $3!$ ways and the remaining numbers can permute in $(n-3)!$ ways, giving you a total of $(n-3)!cdot3!cdotbinom{n-2}3$ ways.
You have $n-3$ numbers leaving $1,2,3$. Imagine you have a row of boxes, where each box denotes one of the $n-3$ numbers. You also have $n-2$ gaps: $n-4$ gaps between the boxes, and $1$ on each end.
$$_ b_1 _ b_2 _ ... _ b_{n-3} _$$
You have to permute the numbers in a manner such that $1,2,3$ are not adjacent to each other. This can be achieved if you select any $3$ distinct gaps out of the $n-2$ gaps to place one of $1,2,3$, since between any two gaps you have one or more boxes, or one or more numbers from the set ${4,5...,n}$, which ensures that $1,2,3$ are never adjacent to each other.
You can select $3$ gaps in $binom{n-2}3$ ways. The numbers in those gaps can permute in $3!$ ways and the remaining numbers can permute in $(n-3)!$ ways, giving you a total of $(n-3)!cdot3!cdotbinom{n-2}3$ ways.
answered Dec 1 at 10:16
Shubham Johri
3,861716
3,861716
add a comment |
add a comment |
There is a permutation of $1,2,3$ giving factor $3!$
There is a permutation of $4,5,dots n$ giving factor $(n-3)!$
The numbers $4,5,dots,n$ are "separated" (e.g. like $star7star5star4star6star$ if $n=7$) and $n-2$ slots/stars exists.
These stars must looked at as candidates for placing there exactly one of the numbers $1,2,3$.
So we must select $3$ of $n-2$ stars giving factor $binom{n-2}3$.
Then we end up with a total of: $$3!(n-3)!binom{n-2}3$$possibilities.
add a comment |
There is a permutation of $1,2,3$ giving factor $3!$
There is a permutation of $4,5,dots n$ giving factor $(n-3)!$
The numbers $4,5,dots,n$ are "separated" (e.g. like $star7star5star4star6star$ if $n=7$) and $n-2$ slots/stars exists.
These stars must looked at as candidates for placing there exactly one of the numbers $1,2,3$.
So we must select $3$ of $n-2$ stars giving factor $binom{n-2}3$.
Then we end up with a total of: $$3!(n-3)!binom{n-2}3$$possibilities.
add a comment |
There is a permutation of $1,2,3$ giving factor $3!$
There is a permutation of $4,5,dots n$ giving factor $(n-3)!$
The numbers $4,5,dots,n$ are "separated" (e.g. like $star7star5star4star6star$ if $n=7$) and $n-2$ slots/stars exists.
These stars must looked at as candidates for placing there exactly one of the numbers $1,2,3$.
So we must select $3$ of $n-2$ stars giving factor $binom{n-2}3$.
Then we end up with a total of: $$3!(n-3)!binom{n-2}3$$possibilities.
There is a permutation of $1,2,3$ giving factor $3!$
There is a permutation of $4,5,dots n$ giving factor $(n-3)!$
The numbers $4,5,dots,n$ are "separated" (e.g. like $star7star5star4star6star$ if $n=7$) and $n-2$ slots/stars exists.
These stars must looked at as candidates for placing there exactly one of the numbers $1,2,3$.
So we must select $3$ of $n-2$ stars giving factor $binom{n-2}3$.
Then we end up with a total of: $$3!(n-3)!binom{n-2}3$$possibilities.
answered Dec 1 at 10:25
drhab
97.4k544128
97.4k544128
add a comment |
add a comment |
We can count the cases
- the permutations are n!
from which we need to eliminate the ways
- we can arrange $1,2,3$ adjacent that is: $3!(n-2)(n-3)!$
- we can arrange exactly a pair adjacent that is: $3!(n-3)![(n-3)(n-4)+2(n-3)]=3!(n-3)!(n-3)(n-2)$
add a comment |
We can count the cases
- the permutations are n!
from which we need to eliminate the ways
- we can arrange $1,2,3$ adjacent that is: $3!(n-2)(n-3)!$
- we can arrange exactly a pair adjacent that is: $3!(n-3)![(n-3)(n-4)+2(n-3)]=3!(n-3)!(n-3)(n-2)$
add a comment |
We can count the cases
- the permutations are n!
from which we need to eliminate the ways
- we can arrange $1,2,3$ adjacent that is: $3!(n-2)(n-3)!$
- we can arrange exactly a pair adjacent that is: $3!(n-3)![(n-3)(n-4)+2(n-3)]=3!(n-3)!(n-3)(n-2)$
We can count the cases
- the permutations are n!
from which we need to eliminate the ways
- we can arrange $1,2,3$ adjacent that is: $3!(n-2)(n-3)!$
- we can arrange exactly a pair adjacent that is: $3!(n-3)![(n-3)(n-4)+2(n-3)]=3!(n-3)!(n-3)(n-2)$
edited Dec 1 at 11:05
answered Dec 1 at 10:13
gimusi
1
1
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
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%2f3021175%2f1-2-ldots-n-are-permuted-none-of-the-numbers-1-2-3-are-adjacent-and-n4%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
Welcome to MathSE. This tutorial explains how to typeset mathematics on this site.
– N. F. Taussig
Dec 1 at 10:02
Mentioned is that from the $n-2$ slots $3$ are selected to be the slots where exactly one of the numbers $1,2,3$ is inserted. There are $binom{n-2}3$ to select $3$ out of $n-2$, right? Btw, after this observation we are not ready yet with the whole calculation.
– drhab
Dec 1 at 10:09
Have a look at en.wikipedia.org/wiki/Stars_and_bars_(combinatorics)
– Shubham Johri
Dec 1 at 10:23