How many subsets of a set contain a difference between elements that are divisible by $4$?How many integers in the range [1,999] are divisible by exactly 1 of 7 and 11?how many subsets with 4-elements?How many subsets of $S$ are there that contain $x$ but do not contain $y$?How many elements in $X$ are divisible by $3$?Lines in the plane from Concrete Mathematics. How many bounded regions are there?How many subsets of an $n$-element set contain $k$ or more elements?How many subsets contain no consecutive elements?Putting Bayes Theorem to workHow many subsets are there that contain a specific set?How many subsets contain $x_1$? How many subsets contain $x_2$ and $x_3$, but not $x_5$?
How did Arya survive the stabbing?
How did Doctor Strange see the winning outcome in Avengers: Infinity War?
India just shot down a satellite from the ground. At what altitude range is the resulting debris field?
Did the DC-9 ever use RATO in revenue service?
Do the temporary hit points from the Battlerager barbarian's Reckless Abandon stack if I make multiple attacks on my turn?
How does buying out courses with grant money work?
Failed to fetch jessie backports repository
Would this custom Sorcerer variant that can only learn any verbal-component-only spell be unbalanced?
Roman Numeral Treatment of Suspensions
How can I get through very long and very dry, but also very useful technical documents when learning a new tool?
Detecting if an element is found inside a container
How do I find the solutions of the following equation?
You cannot touch me, but I can touch you, who am I?
How does it work when somebody invests in my business?
Trouble understanding the speech of overseas colleagues
What is the intuitive meaning of having a linear relationship between the logs of two variables?
Pre-amplifier input protection
Do sorcerers' Subtle Spells require a skill check to be unseen?
How can I kill an app using Terminal?
Is exact Kanji stroke length important?
Is HostGator storing my password in plaintext?
What is the opposite of 'gravitas'?
How can a function with a hole (removable discontinuity) equal a function with no hole?
Avoiding estate tax by giving multiple gifts
How many subsets of a set contain a difference between elements that are divisible by $4$?
How many integers in the range [1,999] are divisible by exactly 1 of 7 and 11?how many subsets with 4-elements?How many subsets of $S$ are there that contain $x$ but do not contain $y$?How many elements in $X$ are divisible by $3$?Lines in the plane from Concrete Mathematics. How many bounded regions are there?How many subsets of an $n$-element set contain $k$ or more elements?How many subsets contain no consecutive elements?Putting Bayes Theorem to workHow many subsets are there that contain a specific set?How many subsets contain $x_1$? How many subsets contain $x_2$ and $x_3$, but not $x_5$?
$begingroup$
I'm practicing for an exam and I'm stuck on one question. I hope I have translated this question properly, here it goes:
Question: How many subsets of the set $1,...,25$ have the property such that
no difference between two of its elements is divisible by $4$?
The solutions suggestions don't really suggest a solution on this, it just states the answer to be $8cdot7^3=2744.$ I don't even know to what chapter this question relates to in my discrete mathematics book.
If I understand this correctly, I should find subsets like these: $1,7,16$ since $4nmid (7-1), 4nmid (16-1)$ and $4nmid (16-7)?$
Well obviously it would take a long time to write them all up on an exam so I sense there is some nice trick to this?
combinatorics elementary-number-theory discrete-mathematics
$endgroup$
add a comment |
$begingroup$
I'm practicing for an exam and I'm stuck on one question. I hope I have translated this question properly, here it goes:
Question: How many subsets of the set $1,...,25$ have the property such that
no difference between two of its elements is divisible by $4$?
The solutions suggestions don't really suggest a solution on this, it just states the answer to be $8cdot7^3=2744.$ I don't even know to what chapter this question relates to in my discrete mathematics book.
If I understand this correctly, I should find subsets like these: $1,7,16$ since $4nmid (7-1), 4nmid (16-1)$ and $4nmid (16-7)?$
Well obviously it would take a long time to write them all up on an exam so I sense there is some nice trick to this?
combinatorics elementary-number-theory discrete-mathematics
$endgroup$
add a comment |
$begingroup$
I'm practicing for an exam and I'm stuck on one question. I hope I have translated this question properly, here it goes:
Question: How many subsets of the set $1,...,25$ have the property such that
no difference between two of its elements is divisible by $4$?
The solutions suggestions don't really suggest a solution on this, it just states the answer to be $8cdot7^3=2744.$ I don't even know to what chapter this question relates to in my discrete mathematics book.
If I understand this correctly, I should find subsets like these: $1,7,16$ since $4nmid (7-1), 4nmid (16-1)$ and $4nmid (16-7)?$
Well obviously it would take a long time to write them all up on an exam so I sense there is some nice trick to this?
combinatorics elementary-number-theory discrete-mathematics
$endgroup$
I'm practicing for an exam and I'm stuck on one question. I hope I have translated this question properly, here it goes:
Question: How many subsets of the set $1,...,25$ have the property such that
no difference between two of its elements is divisible by $4$?
The solutions suggestions don't really suggest a solution on this, it just states the answer to be $8cdot7^3=2744.$ I don't even know to what chapter this question relates to in my discrete mathematics book.
If I understand this correctly, I should find subsets like these: $1,7,16$ since $4nmid (7-1), 4nmid (16-1)$ and $4nmid (16-7)?$
Well obviously it would take a long time to write them all up on an exam so I sense there is some nice trick to this?
combinatorics elementary-number-theory discrete-mathematics
combinatorics elementary-number-theory discrete-mathematics
edited Mar 18 at 12:52
awkward
6,71511025
6,71511025
asked Mar 17 at 22:43
ParsevalParseval
3,0771719
3,0771719
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
There are $7$ integers in the set $S = 1,dots,25$ which are equal to $1$ modulo $4$, and there are $6$ integers in $S$ which are equal to $0$ modulo $4$, and similarly $6$ for $2$ modulo $4$ and $6$ for $3$ modulo $4$. A subset of $S$ has the desired property if and only if it contains at most one number from each of these four groups (any difference of them is then not equal to $0$ modulo $4$, i.e., not divisible by $4$; conversely, if two integers are included which are the same modulo $4$, their difference is divisible by $4$). So you have $8$ choices for the first group: $7$ to include one of the $7$ integers which are equal to $1$ modulo $4$ plus one choice to leave them out entirely; you have $7$ choices for the second group: $6$ to include one of the $6$ which are $0$ modulo $4$ plus one choice to leave them out entirely; and so on. That gives $8cdot 7cdot 7 cdot 7$ possibilities.
$endgroup$
$begingroup$
I get that $S_1=4,9,13,17,21$ are the elements that are equal to $1$ in mod $4$. So $|S_1|=5$. Which numbers did I miss?
$endgroup$
– Parseval
Mar 18 at 13:50
1
$begingroup$
They should be 1, 5, 9, 13, 17, 21, 25
$endgroup$
– csprun
Mar 18 at 13:53
add a comment |
$begingroup$
If no $2$ elements of a subset can have a difference divisible by $4$, those elements must belong to different remainder classes modulo $4$. The set $1,2,ldots,25$ contains $7$ elements $equiv 1 pmod 4$ , namly $1,5,9,ldots,25$ and $6$ elements $equiv 2,3,4 pmod 4$ each.
That means if we wanted to find all $4$-element subsets witht the required property, it would be $7cdot6^3$, because we need one element from each remainder class, and for $equiv 1 pmod 4$ there are 7 choices, for $equiv 2 pmod 4$ there are 6 choices a.s.o.
But since we are looking for arbitrary size subsets (well, arbitrary means size $le 4$, as otherwise 2 elements would be from the same remainder class), we use a trick. We add the numbers $26,27,28$ and $29$ to the set. If we have a subset of size smaller than $4$, we add the missing remainder classes from those 'new' numbers.
That is a one-to-one correspondence between all subsets of $1,2,ldots,25$ with the required property and all 4-element subsets of $1,2,ldots,29$ with the required property. Since we added 1 element to each remainder class, that number is $8cdot7^3$
$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%2f3152178%2fhow-many-subsets-of-a-set-contain-a-difference-between-elements-that-are-divisib%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$
There are $7$ integers in the set $S = 1,dots,25$ which are equal to $1$ modulo $4$, and there are $6$ integers in $S$ which are equal to $0$ modulo $4$, and similarly $6$ for $2$ modulo $4$ and $6$ for $3$ modulo $4$. A subset of $S$ has the desired property if and only if it contains at most one number from each of these four groups (any difference of them is then not equal to $0$ modulo $4$, i.e., not divisible by $4$; conversely, if two integers are included which are the same modulo $4$, their difference is divisible by $4$). So you have $8$ choices for the first group: $7$ to include one of the $7$ integers which are equal to $1$ modulo $4$ plus one choice to leave them out entirely; you have $7$ choices for the second group: $6$ to include one of the $6$ which are $0$ modulo $4$ plus one choice to leave them out entirely; and so on. That gives $8cdot 7cdot 7 cdot 7$ possibilities.
$endgroup$
$begingroup$
I get that $S_1=4,9,13,17,21$ are the elements that are equal to $1$ in mod $4$. So $|S_1|=5$. Which numbers did I miss?
$endgroup$
– Parseval
Mar 18 at 13:50
1
$begingroup$
They should be 1, 5, 9, 13, 17, 21, 25
$endgroup$
– csprun
Mar 18 at 13:53
add a comment |
$begingroup$
There are $7$ integers in the set $S = 1,dots,25$ which are equal to $1$ modulo $4$, and there are $6$ integers in $S$ which are equal to $0$ modulo $4$, and similarly $6$ for $2$ modulo $4$ and $6$ for $3$ modulo $4$. A subset of $S$ has the desired property if and only if it contains at most one number from each of these four groups (any difference of them is then not equal to $0$ modulo $4$, i.e., not divisible by $4$; conversely, if two integers are included which are the same modulo $4$, their difference is divisible by $4$). So you have $8$ choices for the first group: $7$ to include one of the $7$ integers which are equal to $1$ modulo $4$ plus one choice to leave them out entirely; you have $7$ choices for the second group: $6$ to include one of the $6$ which are $0$ modulo $4$ plus one choice to leave them out entirely; and so on. That gives $8cdot 7cdot 7 cdot 7$ possibilities.
$endgroup$
$begingroup$
I get that $S_1=4,9,13,17,21$ are the elements that are equal to $1$ in mod $4$. So $|S_1|=5$. Which numbers did I miss?
$endgroup$
– Parseval
Mar 18 at 13:50
1
$begingroup$
They should be 1, 5, 9, 13, 17, 21, 25
$endgroup$
– csprun
Mar 18 at 13:53
add a comment |
$begingroup$
There are $7$ integers in the set $S = 1,dots,25$ which are equal to $1$ modulo $4$, and there are $6$ integers in $S$ which are equal to $0$ modulo $4$, and similarly $6$ for $2$ modulo $4$ and $6$ for $3$ modulo $4$. A subset of $S$ has the desired property if and only if it contains at most one number from each of these four groups (any difference of them is then not equal to $0$ modulo $4$, i.e., not divisible by $4$; conversely, if two integers are included which are the same modulo $4$, their difference is divisible by $4$). So you have $8$ choices for the first group: $7$ to include one of the $7$ integers which are equal to $1$ modulo $4$ plus one choice to leave them out entirely; you have $7$ choices for the second group: $6$ to include one of the $6$ which are $0$ modulo $4$ plus one choice to leave them out entirely; and so on. That gives $8cdot 7cdot 7 cdot 7$ possibilities.
$endgroup$
There are $7$ integers in the set $S = 1,dots,25$ which are equal to $1$ modulo $4$, and there are $6$ integers in $S$ which are equal to $0$ modulo $4$, and similarly $6$ for $2$ modulo $4$ and $6$ for $3$ modulo $4$. A subset of $S$ has the desired property if and only if it contains at most one number from each of these four groups (any difference of them is then not equal to $0$ modulo $4$, i.e., not divisible by $4$; conversely, if two integers are included which are the same modulo $4$, their difference is divisible by $4$). So you have $8$ choices for the first group: $7$ to include one of the $7$ integers which are equal to $1$ modulo $4$ plus one choice to leave them out entirely; you have $7$ choices for the second group: $6$ to include one of the $6$ which are $0$ modulo $4$ plus one choice to leave them out entirely; and so on. That gives $8cdot 7cdot 7 cdot 7$ possibilities.
edited Mar 17 at 22:58
answered Mar 17 at 22:52
cspruncsprun
2,670210
2,670210
$begingroup$
I get that $S_1=4,9,13,17,21$ are the elements that are equal to $1$ in mod $4$. So $|S_1|=5$. Which numbers did I miss?
$endgroup$
– Parseval
Mar 18 at 13:50
1
$begingroup$
They should be 1, 5, 9, 13, 17, 21, 25
$endgroup$
– csprun
Mar 18 at 13:53
add a comment |
$begingroup$
I get that $S_1=4,9,13,17,21$ are the elements that are equal to $1$ in mod $4$. So $|S_1|=5$. Which numbers did I miss?
$endgroup$
– Parseval
Mar 18 at 13:50
1
$begingroup$
They should be 1, 5, 9, 13, 17, 21, 25
$endgroup$
– csprun
Mar 18 at 13:53
$begingroup$
I get that $S_1=4,9,13,17,21$ are the elements that are equal to $1$ in mod $4$. So $|S_1|=5$. Which numbers did I miss?
$endgroup$
– Parseval
Mar 18 at 13:50
$begingroup$
I get that $S_1=4,9,13,17,21$ are the elements that are equal to $1$ in mod $4$. So $|S_1|=5$. Which numbers did I miss?
$endgroup$
– Parseval
Mar 18 at 13:50
1
1
$begingroup$
They should be 1, 5, 9, 13, 17, 21, 25
$endgroup$
– csprun
Mar 18 at 13:53
$begingroup$
They should be 1, 5, 9, 13, 17, 21, 25
$endgroup$
– csprun
Mar 18 at 13:53
add a comment |
$begingroup$
If no $2$ elements of a subset can have a difference divisible by $4$, those elements must belong to different remainder classes modulo $4$. The set $1,2,ldots,25$ contains $7$ elements $equiv 1 pmod 4$ , namly $1,5,9,ldots,25$ and $6$ elements $equiv 2,3,4 pmod 4$ each.
That means if we wanted to find all $4$-element subsets witht the required property, it would be $7cdot6^3$, because we need one element from each remainder class, and for $equiv 1 pmod 4$ there are 7 choices, for $equiv 2 pmod 4$ there are 6 choices a.s.o.
But since we are looking for arbitrary size subsets (well, arbitrary means size $le 4$, as otherwise 2 elements would be from the same remainder class), we use a trick. We add the numbers $26,27,28$ and $29$ to the set. If we have a subset of size smaller than $4$, we add the missing remainder classes from those 'new' numbers.
That is a one-to-one correspondence between all subsets of $1,2,ldots,25$ with the required property and all 4-element subsets of $1,2,ldots,29$ with the required property. Since we added 1 element to each remainder class, that number is $8cdot7^3$
$endgroup$
add a comment |
$begingroup$
If no $2$ elements of a subset can have a difference divisible by $4$, those elements must belong to different remainder classes modulo $4$. The set $1,2,ldots,25$ contains $7$ elements $equiv 1 pmod 4$ , namly $1,5,9,ldots,25$ and $6$ elements $equiv 2,3,4 pmod 4$ each.
That means if we wanted to find all $4$-element subsets witht the required property, it would be $7cdot6^3$, because we need one element from each remainder class, and for $equiv 1 pmod 4$ there are 7 choices, for $equiv 2 pmod 4$ there are 6 choices a.s.o.
But since we are looking for arbitrary size subsets (well, arbitrary means size $le 4$, as otherwise 2 elements would be from the same remainder class), we use a trick. We add the numbers $26,27,28$ and $29$ to the set. If we have a subset of size smaller than $4$, we add the missing remainder classes from those 'new' numbers.
That is a one-to-one correspondence between all subsets of $1,2,ldots,25$ with the required property and all 4-element subsets of $1,2,ldots,29$ with the required property. Since we added 1 element to each remainder class, that number is $8cdot7^3$
$endgroup$
add a comment |
$begingroup$
If no $2$ elements of a subset can have a difference divisible by $4$, those elements must belong to different remainder classes modulo $4$. The set $1,2,ldots,25$ contains $7$ elements $equiv 1 pmod 4$ , namly $1,5,9,ldots,25$ and $6$ elements $equiv 2,3,4 pmod 4$ each.
That means if we wanted to find all $4$-element subsets witht the required property, it would be $7cdot6^3$, because we need one element from each remainder class, and for $equiv 1 pmod 4$ there are 7 choices, for $equiv 2 pmod 4$ there are 6 choices a.s.o.
But since we are looking for arbitrary size subsets (well, arbitrary means size $le 4$, as otherwise 2 elements would be from the same remainder class), we use a trick. We add the numbers $26,27,28$ and $29$ to the set. If we have a subset of size smaller than $4$, we add the missing remainder classes from those 'new' numbers.
That is a one-to-one correspondence between all subsets of $1,2,ldots,25$ with the required property and all 4-element subsets of $1,2,ldots,29$ with the required property. Since we added 1 element to each remainder class, that number is $8cdot7^3$
$endgroup$
If no $2$ elements of a subset can have a difference divisible by $4$, those elements must belong to different remainder classes modulo $4$. The set $1,2,ldots,25$ contains $7$ elements $equiv 1 pmod 4$ , namly $1,5,9,ldots,25$ and $6$ elements $equiv 2,3,4 pmod 4$ each.
That means if we wanted to find all $4$-element subsets witht the required property, it would be $7cdot6^3$, because we need one element from each remainder class, and for $equiv 1 pmod 4$ there are 7 choices, for $equiv 2 pmod 4$ there are 6 choices a.s.o.
But since we are looking for arbitrary size subsets (well, arbitrary means size $le 4$, as otherwise 2 elements would be from the same remainder class), we use a trick. We add the numbers $26,27,28$ and $29$ to the set. If we have a subset of size smaller than $4$, we add the missing remainder classes from those 'new' numbers.
That is a one-to-one correspondence between all subsets of $1,2,ldots,25$ with the required property and all 4-element subsets of $1,2,ldots,29$ with the required property. Since we added 1 element to each remainder class, that number is $8cdot7^3$
answered Mar 17 at 23:01
IngixIngix
5,087159
5,087159
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%2f3152178%2fhow-many-subsets-of-a-set-contain-a-difference-between-elements-that-are-divisib%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