document.write( "Question 1205232: for the relations: A x B, such that:
\n" ); document.write( "A = {-7,-6,..., -4} and B = {42,43,...,45}\r
\n" ); document.write( "\n" ); document.write( "count how many possible ways N1 to have functions p = A --> B\r
\n" ); document.write( "\n" ); document.write( "N1 = \r
\n" ); document.write( "\n" ); document.write( "count how many possible ways N2 to have p as one to one function.
\n" ); document.write( "N2= \r
\n" ); document.write( "\n" ); document.write( "count how many possible ways N3 to have p NOT onto.
\n" ); document.write( "N3 =
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #841892 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "A = {-7, -6, -5, -4}
\n" ); document.write( "B = {42, 43, 44, 45}
\n" ); document.write( "Each set has 4 elements.
\n" ); document.write( "It's not clear why your teacher used the triple dot notation when it's not needed.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "For the input x = -7, from set A, there are 4 choices it could map to in set B. Same with x = -6 and so on.
\n" ); document.write( "There are 4*4*4*4 = 4^4 = 256 different functions possible.
\n" ); document.write( "A function is a collection of (x,y) points where x doesn't repeat itself.
\n" ); document.write( "The y values can repeat, but the function wouldn't be one-to-one.
\n" ); document.write( "Often the (x,y) points are connected with some kind of line or curve to form a graph; however, in this case, the points will be separate disconnected islands.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "A function is considered one-to-one (aka injective) when we don't have repeated outputs. This is when each input is assigned a unique output.
\n" ); document.write( "You can think of it like pairing up dance partners.
\n" ); document.write( "The input x = -7 has 4 choices to pick from.
\n" ); document.write( "After we pick something from B, there are 4-1 = 3 choices left for the next input. Then 3-1 = 2 choices for the third input, and finally 1 choice for the last input.
\n" ); document.write( "There are 4*3*2*1 = 24 one-to-one functions possible.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "n(A) = number of values in set A
\n" ); document.write( "Because n(A) = n(B), a function that is onto is automatically one-to-one, and vice versa.
\n" ); document.write( "The proof is left as an exercise for the student.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"Onto\" is the same as \"surjective\". They both refer to the idea that every item in set B is targeted.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Here's an example of a surjective function
\n" ); document.write( "{(-7,42),(-6,43),(-5,44),(-4,45)}
\n" ); document.write( "and here's something that isn't surjective.
\n" ); document.write( "{(-7,42),(-6,42),(-5,44),(-4,45)}
\n" ); document.write( "in the 2nd example, the output y = 43 isn't targeted in set B.
\n" ); document.write( "Therefore, the 2nd example isn't surjective. Notice how the 2nd example isn't injective either since we have a repeated y value.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The term bijective means \"both injective and surjective\".\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Here's an article that talks about the terms mentioned
\n" ); document.write( "https://www.mathsisfun.com/sets/injective-surjective-bijective.html\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We found there are 24 bijective functions and 256 functions possible.
\n" ); document.write( "That must mean there are 256-24 = 232 functions that are not surjective. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Answers:
\n" ); document.write( "N1 = 256
\n" ); document.write( "N2 = 24
\n" ); document.write( "N3 = 232
\n" ); document.write( "
\n" ); document.write( "
\n" );