Show the function $f(n)=dfrac (-1)^n (2n-1)+1 4$ is a surjectionWhy isn't this function $f:mathbb N to mathcal P(mathbb N)$ a surjection?How does a special case prove a surjection?Which function is an injection but NOT A SURJECTIONHelp prove $f:X rightarrow Y$ is an injection $Leftrightarrow$ $f:Xrightarrow Y$ is a surjection when $|X|=|Y|$Cantor's Theorem (surjection vs bijection)Surjection $f$ induces surjection $mathcal P (f)$ on power setsHow do I show this is a surjection?Find an explicit surjection $f : mathbbZ_+ to mathbbZ_+ times mathbbZ_+$prove that the function is surjective but not injective.Show that the following function is continuous
What is the best way to deal with NPC-NPC combat?
What does "function" actually mean in music?
A strange hotel
Prove that the countable union of countable sets is also countable
Does a large simulator bay have standard public address announcements?
Does the damage from the Absorb Elements spell apply to your next attack, or to your first attack on your next turn?
Negative Resistance
"My boss was furious with me and I have been fired" vs. "My boss was furious with me and I was fired"
Can a level 2 Warlock take one level in rogue, then continue advancing as a warlock?
How to have a sharp product image?
What does MLD stand for?
Complex numbers z=-3-4i polar form
Will I lose my paid in full property
How do I reattach a shelf to the wall when it ripped out of the wall?
Is Diceware more secure than a long passphrase?
Why didn't the Space Shuttle bounce back into space as many times as possible so as to lose a lot of kinetic energy up there?
Was Dennis Ritchie being too modest in this quote about C and Pascal?
My bank got bought out, am I now going to have to start filing tax returns in a different state?
std::unique_ptr of base class holding reference of derived class does not show warning in gcc compiler while naked pointer shows it. Why?
How can I practically buy stocks?
Combinatorics problem, right solution?
Why must Chinese maps be obfuscated?
What does a straight horizontal line above a few notes, after a changed tempo mean?
Is it acceptable to use working hours to read general interest books?
Show the function $f(n)=dfrac (-1)^n (2n-1)+1 4$ is a surjection
Why isn't this function $f:mathbb N to mathcal P(mathbb N)$ a surjection?How does a special case prove a surjection?Which function is an injection but NOT A SURJECTIONHelp prove $f:X rightarrow Y$ is an injection $Leftrightarrow$ $f:Xrightarrow Y$ is a surjection when $|X|=|Y|$Cantor's Theorem (surjection vs bijection)Surjection $f$ induces surjection $mathcal P (f)$ on power setsHow do I show this is a surjection?Find an explicit surjection $f : mathbbZ_+ to mathbbZ_+ times mathbbZ_+$prove that the function is surjective but not injective.Show that the following function is continuous
$begingroup$
- Let $f:mathbbNrightarrowmathbbZ$ be a function which $f(n)=dfrac (-1)^n (2n-1)+1 4$. Show that $f$ is surjection.
Proof. Let $minmathbbZ$. We need to find $ninmathbbN$ such that $f(n)=m$.Let $m=dfrac (-1)^n (2n-1)+1 4$ for $ninmathbbN.$ If $n$ is even then we get
$$m=dfrac (-1)^n (2n-1)+1 4,$$
$$4m=2n,$$
$$2m=ninmathbbN.$$
If $n$ is odd, then we get
$$4m=-2n+1+1$$
$$1-2m=ninmathbbN.$$
Therefore, can we say $f$ is surjective?
functions elementary-set-theory
$endgroup$
add a comment |
$begingroup$
- Let $f:mathbbNrightarrowmathbbZ$ be a function which $f(n)=dfrac (-1)^n (2n-1)+1 4$. Show that $f$ is surjection.
Proof. Let $minmathbbZ$. We need to find $ninmathbbN$ such that $f(n)=m$.Let $m=dfrac (-1)^n (2n-1)+1 4$ for $ninmathbbN.$ If $n$ is even then we get
$$m=dfrac (-1)^n (2n-1)+1 4,$$
$$4m=2n,$$
$$2m=ninmathbbN.$$
If $n$ is odd, then we get
$$4m=-2n+1+1$$
$$1-2m=ninmathbbN.$$
Therefore, can we say $f$ is surjective?
functions elementary-set-theory
$endgroup$
add a comment |
$begingroup$
- Let $f:mathbbNrightarrowmathbbZ$ be a function which $f(n)=dfrac (-1)^n (2n-1)+1 4$. Show that $f$ is surjection.
Proof. Let $minmathbbZ$. We need to find $ninmathbbN$ such that $f(n)=m$.Let $m=dfrac (-1)^n (2n-1)+1 4$ for $ninmathbbN.$ If $n$ is even then we get
$$m=dfrac (-1)^n (2n-1)+1 4,$$
$$4m=2n,$$
$$2m=ninmathbbN.$$
If $n$ is odd, then we get
$$4m=-2n+1+1$$
$$1-2m=ninmathbbN.$$
Therefore, can we say $f$ is surjective?
functions elementary-set-theory
$endgroup$
- Let $f:mathbbNrightarrowmathbbZ$ be a function which $f(n)=dfrac (-1)^n (2n-1)+1 4$. Show that $f$ is surjection.
Proof. Let $minmathbbZ$. We need to find $ninmathbbN$ such that $f(n)=m$.Let $m=dfrac (-1)^n (2n-1)+1 4$ for $ninmathbbN.$ If $n$ is even then we get
$$m=dfrac (-1)^n (2n-1)+1 4,$$
$$4m=2n,$$
$$2m=ninmathbbN.$$
If $n$ is odd, then we get
$$4m=-2n+1+1$$
$$1-2m=ninmathbbN.$$
Therefore, can we say $f$ is surjective?
functions elementary-set-theory
functions elementary-set-theory
edited Apr 21 at 15:47
YuiTo Cheng
2,90141139
2,90141139
asked Apr 21 at 14:38
PozcuKushimotoStreetPozcuKushimotoStreet
1,425923
1,425923
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
$begingroup$
You can leave it more explicit
Let $n in mathbbN$
If $n$ is even, $n = 2k$ for some $k in mathbbN$
Then $f(2k) = f(n) =frac(-1)^n(2n-1)+14 = frac(2n-1)+14 = frac2n4 = frac4k4 = k $
So, for each $m in mathbbN$, if we take $n = 2m$, we have that $f(n) = f(2m) = m$
Now if $n$ is odd, we have $n = 2k -1$ for some $k in mathbbN$
Then $f(2k-1) = f(n) = frac(-1)^n(2n-1)+14 = frac(-2n +1) +14 = frac(-2n + 2)4 = frac-2(2k-1) +24 = frac-4k + 44 = -k + 1$
So if $m in mathbbZ, m ≤ 0$ then $m - 1≤-1$ so $-m +1≥ 1$
Then $-m + 1 in mathbbN$
And if we take $n = 2(-m+1) -1$ then we have $f(n) = f(2(-m+1)-1) = -(-m+1) + 1 = m$
Then $f$ is surjrctive.
$endgroup$
add a comment |
$begingroup$
Your proof is a little backward. You need to find $n in mathbbN$ such that $f(n)=m$. So you can't say "let $m= f(n)$", because you don't know that there is such $n$ a priori. As such, it doesn't make sense to say "if $n$ is even" or "if $n$ is odd", since you have not demonstrated that $n$ exists. What you have written down is like the scratch work to figure out how the proof should go, but it does not constitute a proof.
Notice that:
beginalign*
f(1)&=0\
f(2) &= 1 \
f(3) &= -1\
f(4) &=2\
f(5)&=-2 \
&vdots
endalign*
Now consider separately the cases $m=0$, $m>0$, and $m<0$. In each case, come up with a formula for $n$ in terms of $m$ that will satisfy $f(n)=m$.
$endgroup$
add a comment |
$begingroup$
a little algebra shows:
$$
f(n+2) - f(n) = (-1)^n
$$
since $f(0) = 0$, then by a telescoping sum:
$$
f(0+2m) = sum_k=1^m (-1)^0 = m
$$
similarly, $f(1) = 0$, and so
$$
f(1+2m) = sum_k=1^m (-1)^1 = -m
$$
$endgroup$
add a comment |
Your Answer
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%2f3195909%2fshow-the-function-fn-dfrac-1n-2n-11-4-is-a-surjection%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
You can leave it more explicit
Let $n in mathbbN$
If $n$ is even, $n = 2k$ for some $k in mathbbN$
Then $f(2k) = f(n) =frac(-1)^n(2n-1)+14 = frac(2n-1)+14 = frac2n4 = frac4k4 = k $
So, for each $m in mathbbN$, if we take $n = 2m$, we have that $f(n) = f(2m) = m$
Now if $n$ is odd, we have $n = 2k -1$ for some $k in mathbbN$
Then $f(2k-1) = f(n) = frac(-1)^n(2n-1)+14 = frac(-2n +1) +14 = frac(-2n + 2)4 = frac-2(2k-1) +24 = frac-4k + 44 = -k + 1$
So if $m in mathbbZ, m ≤ 0$ then $m - 1≤-1$ so $-m +1≥ 1$
Then $-m + 1 in mathbbN$
And if we take $n = 2(-m+1) -1$ then we have $f(n) = f(2(-m+1)-1) = -(-m+1) + 1 = m$
Then $f$ is surjrctive.
$endgroup$
add a comment |
$begingroup$
You can leave it more explicit
Let $n in mathbbN$
If $n$ is even, $n = 2k$ for some $k in mathbbN$
Then $f(2k) = f(n) =frac(-1)^n(2n-1)+14 = frac(2n-1)+14 = frac2n4 = frac4k4 = k $
So, for each $m in mathbbN$, if we take $n = 2m$, we have that $f(n) = f(2m) = m$
Now if $n$ is odd, we have $n = 2k -1$ for some $k in mathbbN$
Then $f(2k-1) = f(n) = frac(-1)^n(2n-1)+14 = frac(-2n +1) +14 = frac(-2n + 2)4 = frac-2(2k-1) +24 = frac-4k + 44 = -k + 1$
So if $m in mathbbZ, m ≤ 0$ then $m - 1≤-1$ so $-m +1≥ 1$
Then $-m + 1 in mathbbN$
And if we take $n = 2(-m+1) -1$ then we have $f(n) = f(2(-m+1)-1) = -(-m+1) + 1 = m$
Then $f$ is surjrctive.
$endgroup$
add a comment |
$begingroup$
You can leave it more explicit
Let $n in mathbbN$
If $n$ is even, $n = 2k$ for some $k in mathbbN$
Then $f(2k) = f(n) =frac(-1)^n(2n-1)+14 = frac(2n-1)+14 = frac2n4 = frac4k4 = k $
So, for each $m in mathbbN$, if we take $n = 2m$, we have that $f(n) = f(2m) = m$
Now if $n$ is odd, we have $n = 2k -1$ for some $k in mathbbN$
Then $f(2k-1) = f(n) = frac(-1)^n(2n-1)+14 = frac(-2n +1) +14 = frac(-2n + 2)4 = frac-2(2k-1) +24 = frac-4k + 44 = -k + 1$
So if $m in mathbbZ, m ≤ 0$ then $m - 1≤-1$ so $-m +1≥ 1$
Then $-m + 1 in mathbbN$
And if we take $n = 2(-m+1) -1$ then we have $f(n) = f(2(-m+1)-1) = -(-m+1) + 1 = m$
Then $f$ is surjrctive.
$endgroup$
You can leave it more explicit
Let $n in mathbbN$
If $n$ is even, $n = 2k$ for some $k in mathbbN$
Then $f(2k) = f(n) =frac(-1)^n(2n-1)+14 = frac(2n-1)+14 = frac2n4 = frac4k4 = k $
So, for each $m in mathbbN$, if we take $n = 2m$, we have that $f(n) = f(2m) = m$
Now if $n$ is odd, we have $n = 2k -1$ for some $k in mathbbN$
Then $f(2k-1) = f(n) = frac(-1)^n(2n-1)+14 = frac(-2n +1) +14 = frac(-2n + 2)4 = frac-2(2k-1) +24 = frac-4k + 44 = -k + 1$
So if $m in mathbbZ, m ≤ 0$ then $m - 1≤-1$ so $-m +1≥ 1$
Then $-m + 1 in mathbbN$
And if we take $n = 2(-m+1) -1$ then we have $f(n) = f(2(-m+1)-1) = -(-m+1) + 1 = m$
Then $f$ is surjrctive.
answered Apr 21 at 15:11
ZAFZAF
5387
5387
add a comment |
add a comment |
$begingroup$
Your proof is a little backward. You need to find $n in mathbbN$ such that $f(n)=m$. So you can't say "let $m= f(n)$", because you don't know that there is such $n$ a priori. As such, it doesn't make sense to say "if $n$ is even" or "if $n$ is odd", since you have not demonstrated that $n$ exists. What you have written down is like the scratch work to figure out how the proof should go, but it does not constitute a proof.
Notice that:
beginalign*
f(1)&=0\
f(2) &= 1 \
f(3) &= -1\
f(4) &=2\
f(5)&=-2 \
&vdots
endalign*
Now consider separately the cases $m=0$, $m>0$, and $m<0$. In each case, come up with a formula for $n$ in terms of $m$ that will satisfy $f(n)=m$.
$endgroup$
add a comment |
$begingroup$
Your proof is a little backward. You need to find $n in mathbbN$ such that $f(n)=m$. So you can't say "let $m= f(n)$", because you don't know that there is such $n$ a priori. As such, it doesn't make sense to say "if $n$ is even" or "if $n$ is odd", since you have not demonstrated that $n$ exists. What you have written down is like the scratch work to figure out how the proof should go, but it does not constitute a proof.
Notice that:
beginalign*
f(1)&=0\
f(2) &= 1 \
f(3) &= -1\
f(4) &=2\
f(5)&=-2 \
&vdots
endalign*
Now consider separately the cases $m=0$, $m>0$, and $m<0$. In each case, come up with a formula for $n$ in terms of $m$ that will satisfy $f(n)=m$.
$endgroup$
add a comment |
$begingroup$
Your proof is a little backward. You need to find $n in mathbbN$ such that $f(n)=m$. So you can't say "let $m= f(n)$", because you don't know that there is such $n$ a priori. As such, it doesn't make sense to say "if $n$ is even" or "if $n$ is odd", since you have not demonstrated that $n$ exists. What you have written down is like the scratch work to figure out how the proof should go, but it does not constitute a proof.
Notice that:
beginalign*
f(1)&=0\
f(2) &= 1 \
f(3) &= -1\
f(4) &=2\
f(5)&=-2 \
&vdots
endalign*
Now consider separately the cases $m=0$, $m>0$, and $m<0$. In each case, come up with a formula for $n$ in terms of $m$ that will satisfy $f(n)=m$.
$endgroup$
Your proof is a little backward. You need to find $n in mathbbN$ such that $f(n)=m$. So you can't say "let $m= f(n)$", because you don't know that there is such $n$ a priori. As such, it doesn't make sense to say "if $n$ is even" or "if $n$ is odd", since you have not demonstrated that $n$ exists. What you have written down is like the scratch work to figure out how the proof should go, but it does not constitute a proof.
Notice that:
beginalign*
f(1)&=0\
f(2) &= 1 \
f(3) &= -1\
f(4) &=2\
f(5)&=-2 \
&vdots
endalign*
Now consider separately the cases $m=0$, $m>0$, and $m<0$. In each case, come up with a formula for $n$ in terms of $m$ that will satisfy $f(n)=m$.
answered Apr 21 at 14:51
kccukccu
12k11231
12k11231
add a comment |
add a comment |
$begingroup$
a little algebra shows:
$$
f(n+2) - f(n) = (-1)^n
$$
since $f(0) = 0$, then by a telescoping sum:
$$
f(0+2m) = sum_k=1^m (-1)^0 = m
$$
similarly, $f(1) = 0$, and so
$$
f(1+2m) = sum_k=1^m (-1)^1 = -m
$$
$endgroup$
add a comment |
$begingroup$
a little algebra shows:
$$
f(n+2) - f(n) = (-1)^n
$$
since $f(0) = 0$, then by a telescoping sum:
$$
f(0+2m) = sum_k=1^m (-1)^0 = m
$$
similarly, $f(1) = 0$, and so
$$
f(1+2m) = sum_k=1^m (-1)^1 = -m
$$
$endgroup$
add a comment |
$begingroup$
a little algebra shows:
$$
f(n+2) - f(n) = (-1)^n
$$
since $f(0) = 0$, then by a telescoping sum:
$$
f(0+2m) = sum_k=1^m (-1)^0 = m
$$
similarly, $f(1) = 0$, and so
$$
f(1+2m) = sum_k=1^m (-1)^1 = -m
$$
$endgroup$
a little algebra shows:
$$
f(n+2) - f(n) = (-1)^n
$$
since $f(0) = 0$, then by a telescoping sum:
$$
f(0+2m) = sum_k=1^m (-1)^0 = m
$$
similarly, $f(1) = 0$, and so
$$
f(1+2m) = sum_k=1^m (-1)^1 = -m
$$
answered Apr 21 at 15:31
David HoldenDavid Holden
15k21226
15k21226
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%2f3195909%2fshow-the-function-fn-dfrac-1n-2n-11-4-is-a-surjection%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