How many functions can be made with the following sets?












2












$begingroup$


Lets say we have a function $f:Xrightarrow Y$ where $X={a,b,c,d}$ and $Y={x,y}$. Can we assign each $xin{X}$ to $yin{Y}$ in $4^2$ different possible ways? that is, create $16$ possible functions? below is my answer. Is there an easier or quicker method to do this or is my answer sufficient for this type of question?



$$f:Xrightarrow Yquad f(a)=x , f(b)=x, f(c)=x ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=x, f(c)=x ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=x, f(c)=y ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=y, f(c)=y ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=y, f(c)=y ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=y, f(c)=y ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=y, f(c)=x ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=x, f(c)=x ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=x, f(c)=y ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=y, f(c)=y ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=x, f(c)=y ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=y, f(c)=x ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=x, f(c)=x ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=x, f(c)=y ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=y, f(c)=x ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=y, f(c)=x ,f(d)=x;$$










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    See this
    $endgroup$
    – John Douma
    Jan 17 at 21:32
















2












$begingroup$


Lets say we have a function $f:Xrightarrow Y$ where $X={a,b,c,d}$ and $Y={x,y}$. Can we assign each $xin{X}$ to $yin{Y}$ in $4^2$ different possible ways? that is, create $16$ possible functions? below is my answer. Is there an easier or quicker method to do this or is my answer sufficient for this type of question?



$$f:Xrightarrow Yquad f(a)=x , f(b)=x, f(c)=x ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=x, f(c)=x ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=x, f(c)=y ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=y, f(c)=y ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=y, f(c)=y ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=y, f(c)=y ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=y, f(c)=x ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=x, f(c)=x ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=x, f(c)=y ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=y, f(c)=y ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=x, f(c)=y ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=y, f(c)=x ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=x, f(c)=x ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=x, f(c)=y ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=y, f(c)=x ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=y, f(c)=x ,f(d)=x;$$










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    See this
    $endgroup$
    – John Douma
    Jan 17 at 21:32














2












2








2





$begingroup$


Lets say we have a function $f:Xrightarrow Y$ where $X={a,b,c,d}$ and $Y={x,y}$. Can we assign each $xin{X}$ to $yin{Y}$ in $4^2$ different possible ways? that is, create $16$ possible functions? below is my answer. Is there an easier or quicker method to do this or is my answer sufficient for this type of question?



$$f:Xrightarrow Yquad f(a)=x , f(b)=x, f(c)=x ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=x, f(c)=x ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=x, f(c)=y ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=y, f(c)=y ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=y, f(c)=y ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=y, f(c)=y ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=y, f(c)=x ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=x, f(c)=x ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=x, f(c)=y ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=y, f(c)=y ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=x, f(c)=y ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=y, f(c)=x ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=x, f(c)=x ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=x, f(c)=y ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=y, f(c)=x ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=y, f(c)=x ,f(d)=x;$$










share|cite|improve this question











$endgroup$




Lets say we have a function $f:Xrightarrow Y$ where $X={a,b,c,d}$ and $Y={x,y}$. Can we assign each $xin{X}$ to $yin{Y}$ in $4^2$ different possible ways? that is, create $16$ possible functions? below is my answer. Is there an easier or quicker method to do this or is my answer sufficient for this type of question?



$$f:Xrightarrow Yquad f(a)=x , f(b)=x, f(c)=x ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=x, f(c)=x ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=x, f(c)=y ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=y, f(c)=y ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=y, f(c)=y ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=y, f(c)=y ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=y, f(c)=x ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=x, f(c)=x ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=x, f(c)=y ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=y, f(c)=y ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=x, f(c)=y ,f(d)=x;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=y, f(c)=x ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=x, f(c)=x ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=x, f(c)=y ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=y , f(b)=y, f(c)=x ,f(d)=y;$$ $$f:Xrightarrow Yquad f(a)=x , f(b)=y, f(c)=x ,f(d)=x;$$







functions proof-verification






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 17 at 21:28

























asked Jan 17 at 21:25







user606466















  • 1




    $begingroup$
    See this
    $endgroup$
    – John Douma
    Jan 17 at 21:32














  • 1




    $begingroup$
    See this
    $endgroup$
    – John Douma
    Jan 17 at 21:32








1




1




$begingroup$
See this
$endgroup$
– John Douma
Jan 17 at 21:32




$begingroup$
See this
$endgroup$
– John Douma
Jan 17 at 21:32










2 Answers
2






active

oldest

votes


















0












$begingroup$

For each element in X, there are two elements in $Y$ that they can be mapped to an element in $Y$: $a$ can be mapped to $x$ or $y$; same thing for $b, c, d$. In all we have: $2cdot 2 cdot 2cdot 2 = 2^4 = 16$ ways to do that.



But you've explicitly written the list of all possible function assignments from $Xto Y$, which helps you understand this.



In general, given a set $X$ with $n$ elements, and a set $Y$ with $m$ elements, then the number of functions $f: Xto Y$ is equal to $|Y|^{|X|} = m^n$.






share|cite|improve this answer











$endgroup$





















    0












    $begingroup$

    You actually got the right answer for the wrong reason: you want $mid Y^Xmid=mid Ymid^{mid Xmid}=2^4=16$.



    Though it looks like you listed them correctly.






    share|cite|improve this answer











    $endgroup$













      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
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3077529%2fhow-many-functions-can-be-made-with-the-following-sets%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









      0












      $begingroup$

      For each element in X, there are two elements in $Y$ that they can be mapped to an element in $Y$: $a$ can be mapped to $x$ or $y$; same thing for $b, c, d$. In all we have: $2cdot 2 cdot 2cdot 2 = 2^4 = 16$ ways to do that.



      But you've explicitly written the list of all possible function assignments from $Xto Y$, which helps you understand this.



      In general, given a set $X$ with $n$ elements, and a set $Y$ with $m$ elements, then the number of functions $f: Xto Y$ is equal to $|Y|^{|X|} = m^n$.






      share|cite|improve this answer











      $endgroup$


















        0












        $begingroup$

        For each element in X, there are two elements in $Y$ that they can be mapped to an element in $Y$: $a$ can be mapped to $x$ or $y$; same thing for $b, c, d$. In all we have: $2cdot 2 cdot 2cdot 2 = 2^4 = 16$ ways to do that.



        But you've explicitly written the list of all possible function assignments from $Xto Y$, which helps you understand this.



        In general, given a set $X$ with $n$ elements, and a set $Y$ with $m$ elements, then the number of functions $f: Xto Y$ is equal to $|Y|^{|X|} = m^n$.






        share|cite|improve this answer











        $endgroup$
















          0












          0








          0





          $begingroup$

          For each element in X, there are two elements in $Y$ that they can be mapped to an element in $Y$: $a$ can be mapped to $x$ or $y$; same thing for $b, c, d$. In all we have: $2cdot 2 cdot 2cdot 2 = 2^4 = 16$ ways to do that.



          But you've explicitly written the list of all possible function assignments from $Xto Y$, which helps you understand this.



          In general, given a set $X$ with $n$ elements, and a set $Y$ with $m$ elements, then the number of functions $f: Xto Y$ is equal to $|Y|^{|X|} = m^n$.






          share|cite|improve this answer











          $endgroup$



          For each element in X, there are two elements in $Y$ that they can be mapped to an element in $Y$: $a$ can be mapped to $x$ or $y$; same thing for $b, c, d$. In all we have: $2cdot 2 cdot 2cdot 2 = 2^4 = 16$ ways to do that.



          But you've explicitly written the list of all possible function assignments from $Xto Y$, which helps you understand this.



          In general, given a set $X$ with $n$ elements, and a set $Y$ with $m$ elements, then the number of functions $f: Xto Y$ is equal to $|Y|^{|X|} = m^n$.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Jan 17 at 21:40

























          answered Jan 17 at 21:33









          jordan_glenjordan_glen

          1




          1























              0












              $begingroup$

              You actually got the right answer for the wrong reason: you want $mid Y^Xmid=mid Ymid^{mid Xmid}=2^4=16$.



              Though it looks like you listed them correctly.






              share|cite|improve this answer











              $endgroup$


















                0












                $begingroup$

                You actually got the right answer for the wrong reason: you want $mid Y^Xmid=mid Ymid^{mid Xmid}=2^4=16$.



                Though it looks like you listed them correctly.






                share|cite|improve this answer











                $endgroup$
















                  0












                  0








                  0





                  $begingroup$

                  You actually got the right answer for the wrong reason: you want $mid Y^Xmid=mid Ymid^{mid Xmid}=2^4=16$.



                  Though it looks like you listed them correctly.






                  share|cite|improve this answer











                  $endgroup$



                  You actually got the right answer for the wrong reason: you want $mid Y^Xmid=mid Ymid^{mid Xmid}=2^4=16$.



                  Though it looks like you listed them correctly.







                  share|cite|improve this answer














                  share|cite|improve this answer



                  share|cite|improve this answer








                  edited Jan 17 at 21:47

























                  answered Jan 17 at 21:39









                  Chris CusterChris Custer

                  13.8k3827




                  13.8k3827






























                      draft saved

                      draft discarded




















































                      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.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3077529%2fhow-many-functions-can-be-made-with-the-following-sets%23new-answer', 'question_page');
                      }
                      );

                      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







                      Popular posts from this blog

                      Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

                      Does disintegrating a polymorphed enemy still kill it after the 2018 errata?

                      A Topological Invariant for $pi_3(U(n))$