<?xml version="1.0" encoding="UTF-8" ?>
  <resource>
  <id>9538</id>
  <path>/www/nrich/html/content/id/9538/</path>
  <resourceTypeID>1</resourceTypeID>
  <last_published>2012-10-11T16:42:42</last_published>
  <indexXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;p&gt;In the problem &lt;a href=&quot;/4308&quot;&gt;Odds and Evens&lt;/a&gt;, we introduced the following game and invited you to work out whether the game was fair:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Here is a set of numbered balls used for a game. &lt;mdo:image alt=&quot;Set of balls: 2, 3, 4, 5, 6&quot; src=&quot;odds1.png&quot; style=&quot;width: 130px; height: 89px; float: right;&quot;&gt;&lt;/mdo:image&gt;&lt;/p&gt;
&lt;p&gt;To play the game, the balls are mixed up and two balls are randomly picked out together.&lt;/p&gt;
The numbers on the balls are added together.&lt;br&gt;&lt;/br&gt;
If the total is even, you win. If the total is odd, you lose. &lt;br&gt;&lt;/br&gt;
&lt;p&gt;&lt;strong&gt;Can you find a set of balls where the chance of getting an even total is the same as the chance of getting an odd total?&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
How many sets of balls with this property can you find?&lt;br&gt;&lt;/br&gt;
What do you notice about the number of odd and even balls in your sets?&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
 &lt;/p&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;span class=&quot;editorial&quot;&gt;This problem follows on from an earlier one. Make sure you have a think about &lt;a href=&quot;http://nrich.maths.org/4308&quot;&gt;Odds and Evens&lt;/a&gt; first!&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Iris and many others realised that the game given in this problem is not fair. There are more ways of making an odd total than an even one. Finding a game which &lt;em&gt;is&lt;/em&gt; fair is a harder challenge!&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
A good thing to notice is that the actual numbers on the balls don&amp;#39;t matter - just whether they are even or odd. This is sometimes called a number&amp;#39;s &lt;em&gt;parity&lt;/em&gt;.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Charlotte, Lokhin, Matthew, Jake and Hashim from The Cherwell School sent in a fair game they found by trial and improvement:&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;p&gt;To start with we tried two even and two odd balls because this is the most logical, but this made you more likely to lose. The table shows ossible outcomes here where the parity of the first ball is along the top, and the second is down the left side. The diagonal cells don&amp;#39;t count because you can&amp;#39;t choose the same ball twice.&lt;br&gt;&lt;/br&gt;
 &lt;/p&gt;
&lt;table style=&quot;border-spacing: 1px; width: 200px; height: 200px;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt;&lt;strong&gt;E&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;E&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;O&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;O&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;E&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;-&lt;/td&gt;
&lt;td&gt;E&lt;/td&gt;
&lt;td&gt;O&lt;/td&gt;
&lt;td&gt;O&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;E&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;E&lt;/td&gt;
&lt;td&gt;-&lt;/td&gt;
&lt;td&gt;O&lt;/td&gt;
&lt;td&gt;O&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;O&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;O&lt;/td&gt;
&lt;td&gt;O&lt;/td&gt;
&lt;td&gt;-&lt;/td&gt;
&lt;td&gt;E&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;O&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;O&lt;/td&gt;
&lt;td&gt;O&lt;/td&gt;
&lt;td&gt;E&lt;/td&gt;
&lt;td&gt;-&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;&lt;/br&gt;
You can see that there are 8 odd outcomes and only 4 even ones - and &lt;em&gt;each outcome is equally likely&lt;/em&gt;. This game is unfair, so we tried swapping one of the evens with an odd and the result was a fair game.&lt;br&gt;&lt;/br&gt;
&lt;p&gt;&lt;span class=&quot;editorial&quot;&gt;Great work! Try to construct the table of outcomes for this new game with 1 even and 3 odd balls. Check for yourself that the game is fair.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Michael, Benjie, Oliver, Conall gave very similar algebraic solutions. They used different ways of turning the problem into a set of equations to solve, and then found the answers. Fantastic work, see if you can follow the method:&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Write $a$ for the number of even balls, and $b$ for the number of odd ones. We need to count ways of finding even and odd totals. It&amp;#39;s important to be able to count ways of choosing pairs of things. If you choose 2 things from $n$ objects there are $n(n-1)/2$ ways to do this because there are $n$ ways of choosing the first, then $(n-1)$ ways of choosing the second; but then we count each pair
twice; choosing it in either order.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;Even, Even:&lt;/strong&gt; This makes an even total. There are $a(a-1)/2$ ways of choosing two evens.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;b&gt;Odd, Odd: &lt;/b&gt;This makes an even total. There are $b(b-1)/2$ ways of choosing two odds.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;Even, Odd or Odd, Even:&lt;/strong&gt; This makes an odd total. There are exactly $ab$ ways of choosing one odd and one even number.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Sometimes counting pairs can be tricky, make sure you understand why these numbers work.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
So there are $\frac{a(a-1) + b(b-1)}{2}$ ways of choosing an even total and $ab$ ways of choosing an odd total. Since each individual outcome is equally likely to occur we need these numbers to be equal. This is where we find an equation:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
$$\frac{a(a-1) + b(b-1)}{2} = ab$$&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
There are a few good ways of solving this. One extra problem is that $a$ and $b$ are integers. Rearrange the equation to give&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
\begin{align}&lt;br&gt;&lt;/br&gt;
a(a-1) + b(b-1) &amp;amp;= 2ab\\&lt;br&gt;&lt;/br&gt;
a^2-a+b^2-b-2ab &amp;amp;= 0\\&lt;br&gt;&lt;/br&gt;
(a-b)^2 -(a+b) &amp;amp;= 0\\&lt;br&gt;&lt;/br&gt;
(a-b)^2 &amp;amp;= a+b&lt;br&gt;&lt;/br&gt;
\end{align}&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Which we can solve using our knowledge that since $a$ and $b$ are integers; so are $a-b$ and $a+b$. but then $a+b$ is a square number! Let&amp;#39;s write $a+b=n^2$. Then we also have&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
$$a-b=\pm n$$&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
But since $a$ and $b$ play the same role in the equation solutions are valid if we swap $a$ and $b$. Let&amp;#39;s just take $a-b=n$ then. The other sign is dealt with by swapping.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Now we have $a-b= n$ and $a+b=n^2$. So solve for $a$ and $b$:&lt;br&gt;&lt;/br&gt;
\begin{align}&lt;br&gt;&lt;/br&gt;
a &amp;amp;=\frac{n^2+n}{2}\\&lt;br&gt;&lt;/br&gt;
b &amp;amp;=\frac{n^2-n}{2}&lt;br&gt;&lt;/br&gt;
\end{align}&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Wonderful. The same solutions can be found if you use the quadratic formula on the big equation for $a$ and $b$ too. This is equally good! Now put all this together:&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
So for the game to be fair; we need the number of odd and even balls to have the formulas above for any positive integer $n$. This also means the total number of balls is a square number.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;For example if $n=2$ we have the solution found by trial and improvement above, with odd and even swapped.&lt;/span&gt;&lt;/p&gt;&lt;/mdoxml&gt;</solutionXML>
  <noteXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
&lt;h3&gt;Why do this problem?&lt;/h3&gt;
&lt;div&gt;&lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=9538&quot;&gt;This problem&lt;/a&gt; offers a meaningful context in which algebraic fractions and tree diagrams can help explain a surprising result in a probability problem. Collaborative working makes it possible for students to tackle an otherwise unmanageable task.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;h3&gt;Possible approach&lt;/h3&gt;
This problem follows on from the problem &lt;a href=&quot;/4308&quot;&gt;Odds and Evens&lt;/a&gt;.&lt;br&gt;&lt;/br&gt;
&quot;Imagine you had a bag containing a set of balls with whole numbers on them. You choose two balls, and find the total. Can you find a set of balls where the chance of getting an odd total is equal to the chance of getting an even total?&quot;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Click below for a numerical approach suitable for students with little experience working algebraically with tree diagrams.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div class=&quot;toggle&quot;&gt;&quot;How could we go about finding out whether there are any sets that would give a fair game?&quot; One way of organising the search is to draw up a table on the board showing different combinations of odds and evens:  &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;mdo:image alt=&quot;board divided into different numbers of odds and evens&quot; height=&quot;400&quot; src=&quot;odds4.jpg&quot; width=&quot;500&quot;&gt;&lt;/mdo:image&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Divide the class into groups working on different combinations and ask them to report back. Students could use sample space diagrams or tree diagrams to work out the probability for each case. Then they could record combinations that have been checked on the board with a tick or a cross to show whether they are fair or not.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
There will be opportunities while the class are working to stop everyone and share students&amp;#39; insights that will make the job easier. For example: &quot;None of the combinations with zero will work because...&quot; &quot;If 3 odds and 2 evens won&amp;#39;t work, 2 odds and 3 evens won&amp;#39;t either, because...&quot; &quot;You can&amp;#39;t have the same number of evens and odds because...&quot;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Eventually, there will be a sea of crosses on the board and just a few combinations that work (four, if the class have gone up to 9 balls in total). Ask the class to stop and consider what the fair sets have in common. This may lead to some new conjectures about the total number of balls, so organise the class to test the conjectures. Once there is some confirmation about the total number of
balls needed for fair games, conjectures can also be made about how these should be split into odds and evens. Students can test examples with large numbers, using the simplified sample space method detailed in the &lt;a href=&quot;/4308/note&quot;&gt;Teachers&amp;#39; notes to Odds and Evens&lt;/a&gt;. Draw attention to how valuable it is to work collaboratively as part of a mathematical community, and how difficult it would
have been to have reached the same insights working alone.&lt;br&gt;&lt;/br&gt;
Finally, invite students to prove their conjectures algebraically. &lt;a class=&quot;pdflink&quot; href=&quot;/content/id/9538/Odds%20and%20Evens.pdf&quot;&gt;This worksheet&lt;/a&gt; outlines one possible proof.&lt;/div&gt;
&lt;p&gt;&lt;br&gt;&lt;/br&gt;
Click below for an algebraic approach using tree diagrams.&lt;/p&gt;
&lt;div class=&quot;toggle&quot;&gt;&quot;To explore this, imagine there are p balls with odd numbers and q balls with even numbers. Can you work out the probability of an even total or an odd total in terms of p and q?&quot;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Give the class time to work on this. Draw attention to clear methods of representation such as tree diagrams or sample space diagrams. Eventually, students should find that p and q satisfy the equation $(p-q)^2 = p+q$ or equivalent.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&quot;Can we find some values of p and q that satisfy the conditions?&quot; At this point, encourage students to work systematically, and depending on their form for the equation they could set square-number values for $p-q$ and solve the resulting simultaneous equations, or choose a value for p and see whether there is a corresponding integer value for q. Invite students to write up on the board any pairs
of numbers p and q they find that work.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&quot;What do you notice about p and q? Can anyone explain why?&quot;&lt;br&gt;&lt;/br&gt;
Finally, a little algebra can show why p and q belong to the set of triangle numbers. &lt;a class=&quot;pdflink&quot; href=&quot;/content/id/9538/Odds%20and%20Evens.pdf&quot;&gt;This worksheet&lt;/a&gt; shows one possible proof method.&lt;/div&gt;
&lt;h3&gt;&lt;br&gt;&lt;/br&gt;
Key questions&lt;/h3&gt;
&lt;div&gt;How can you decide if a game is fair?&lt;/div&gt;
&lt;div&gt;How can we make this difficult task (of finding a fair game) more manageable?&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;h3&gt;Possible extension&lt;/h3&gt;
&lt;span style=&quot;font-weight: 400;&quot;&gt;The problem&lt;/span&gt; &lt;a href=&quot;http://nrich.maths.org/919&amp;amp;part=&quot; style=&quot;font-weight: 400;&quot;&gt;In a Box&lt;/a&gt; &lt;span style=&quot;font-weight: 400;&quot;&gt;offers another context for exploring exactly the same underlying mathematical structure, and could be used as a follow-up problem a few weeks after working on this one.&lt;/span&gt; 
&lt;h3&gt;Possible support&lt;/h3&gt;
&lt;div&gt;Take plenty of time to work on the original &lt;a href=&quot;/4308&quot;&gt;Odds and Evens&lt;/a&gt; problem before trying this extension task.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</noteXML>
  <clueXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
If I had 1 odd and 1 even ball would it be a fair game?&lt;br&gt;&lt;/br&gt;
If I had 2 odds and 1 even ball would it be a fair game?&lt;br&gt;&lt;/br&gt;
If I had 1 odd and 2 even balls would it be a fair game?&lt;br&gt;&lt;/br&gt;
If I had 1 odd and 3 even balls would it be a fair game?&lt;br&gt;&lt;/br&gt;
...&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</clueXML>
  <canonXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
&lt;p&gt;&lt;span class=&quot;editorial&quot;&gt;Congratulations to Sam, James and Esther
who sent in correct solutions to this problem.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;editorial&quot;&gt;Several others of you were really close,
but made slight errors.&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;editorial&quot;&gt;Here is Esther's solution:&lt;/p&gt;

Set D would give the greatest proportion of even numbers.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The possibilities for this set are:&lt;br&gt;&lt;/br&gt;
(1,3) (1,4) (1,5) (1,7) (1,9)&lt;br&gt;&lt;/br&gt;
(3,4) (3,5) (3,7) (3,9)&lt;br&gt;&lt;/br&gt;
(4,5) (4,7) (4,9)&lt;br&gt;&lt;/br&gt;
(5,7) (5,9)&lt;br&gt;&lt;/br&gt;
(7,9)&lt;br&gt;&lt;/br&gt;
of which 10 out of 15 are even, a probability of 2/3 .&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
When you work out A in this way, the probability is 2/5, B is 3/5
and C is 7/15.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
 

&lt;p class=&quot;editorial&quot;&gt;Esther correctly spotted that if you could
select any numbers with at least one odd, the best numbers would be
if they were all odd - two odds always add to make an even .&lt;/p&gt;

If assume that picking 3 and 5 is same as picking 5 and 3, then: A
- 4 out of possible 10 are even: 3+5, 2+6, 2+4, 6+4 B - 6 out of
possible 10 are even: 3+1, 3+5, 3+7, 1+5, 1+7, 5+7 C - 7 out of
possible 15 are even: 8+2, 8+6, 8+4, 3+5, 2+6, 2+4, 4+6 D - 10 out
of possible 15 are even: 7+9, 7+3, 7+1, 7+5, 3+9, 3+1, 3+5, 9+1,
9+5, 5+1 If all five balls or all six balls were odd, every
combination would give an even total. &lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</canonXML>
  <end_user_role>2</end_user_role>
  <difficulty>3</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>0</keystage3>
  <keystage4>1</keystage4>
  <keystage4plus>1</keystage4plus>
  <title>Odds and Evens made fair</title>
  <description>In this follow-up to the problem Odds and Evens, we invite you to analyse a probability situation in order to find the general solution for a fair game.</description>
  <spec_group>Probability
    <specifier>Experimental probability</specifier>
  </spec_group>
  <spec_group>ajk44
    <specifier>solution needs editing</specifier>
  </spec_group>
</resource>