Counting the number of solutions to a simple mapping problem

28 Views Asked by At

Let $A:=\{8,3,-15,-5,-10\}$ and define the function

$$f:A\times A\to \Bbb Z,\quad (x,y)\mapsto x+y$$

How many solutions are for the equation $f(x,y)=-7$? List the solutions.

May I please have an explain ?

1

There are 1 best solutions below

1
On

For each $x\in A$, you can compute what $y$ must be, if there is a suitable $y$:

$$ x+y=-7 \implies y = -7-x $$

Go through each of the possible $x$ and compute what the necessary $y$ must be. Check if that $y$ is in $A$; if it is, you have found a solution.