Showing posts with label diagram. Show all posts
Showing posts with label diagram. Show all posts

Monday, February 1, 2016

[OlymLSec20160201PHHE] Pigeonhole Principle and Harry’s emails

Problem / Question

Handsome Harry has a secret email account that only four friends know.  Today he received 8 emails in that account. Which of the following is certainly true?
(A)  Harry received two emails from each friend.
(B)  Harry cannot have received eight emails from one of his friends.
(C)  Harry received at least one email from each friend.
(D)  Harry received at least two emails from one of his friends
(E)  Harry received at least two emails from 2 different friends.

Introduction
      This question is from some Kangaroo Mathematics Competition, which tests students on logic and not necessarily things from Singapore Mathematics syllabus. 

Solution
      (D)  Harry received at least two emails from one of his friends

Explanation
      This is an example of the Pigeonhole Principle.  Perhaps the easiest way to understand this is to imagine an array of pigeonholes with four columns (one for each of Harry’s friends) and pigeons (representing individual emails sent from the friends).  In the diagram below, I draw dots instead of pigeons.
As you can see, no matter how the eight dots / pigeons are placed, at least one of the friends will have at least two dots.  It is not possible for all the friends to have less than two emails.

Formal Proof
     We can use a proof by contradiction argument.  Suppose it were not true that Harry received at least two emails from one of his friends.  That would mean each of his  4  friends sent at most one email.  But then the total number of emails would be  4  or less.  This contradicts the given fact that Harry received  8  emails.  So this state of affairs is not possible.  Therefore, the opposite is true.  We conclude that Harry received at least two emails from one of his friends.

Final Remarks
      The Pigeonhole Principle is very useful in many situations, including computer science.  In general, if you have more objects (“pigeons”) than there are containers or slots (“pigeonholes”), one of the containers must have at least two of those objects.

H02. Use a diagram / model
H04. Look for pattern(s)
H05. Work backwards
H08. Make suppositions
H09. Restate the problem in another way

Suitable Levels
Lower Secondary Mathematics Competition / Olympiad
* other syllabuses that involve logic, combinatorics or Pigeonhole Principle
* any precocious or independent mathematics problem solver who is interested




Tuesday, June 9, 2015

[Pri20150609PCBA] Members of a New Fitness Club

Question

Introduction
     This is a question on percentages.  Percentages are in themselves also units.  One percent (1%) simply means 1/100.  And we can use units (shown circled in the diagrams below) in which each unit is  1/100  or  1%  of some whole.
     It is useful to think of increases and decreases as multiplying by some percentage.  For example, a decrease by 20%  means multiplying by  100% – 20%  i.e.  80%.  After all, if you work out  100%  of something and subtract  20%  of the same thing,  you will end up with  80%  of that thing.  It is much easier to think of it that way.  Likewise, an increase of  45%  means multiplication by  100% + 45% = 145%.


Solution
     From the information given in the question, we can set up a diagram like this.  I use circles to envelop the percentage units.

We can work out the units in the “after” situation (one year later):-
40 ×  80%  = 40 ×   4/5  = 32
60 × 145% = 60 × 29/20 = 87


The new total is  119%  or  119 circle units.  The net increase is  19%  or  19 circle units, which we know is equivalent to  228.  Once we got this part, we can work out  1  circle unit  and then  20 circle units, which is the difference between the number of male and female members.  [Remember the check that you are answering the question that was asked.]

Ans: 240

Summary
     We have used a diagram in the form of a ratio-units model [H02].  The ratio unit used in this example happens to be the same as a percentage.  Be careful that other questions may involve different kinds of units with different bases for their percentages.  In other words, in other questions, the “100%” may stand for different things.  In the diagram, we have used the before-after concept [H06].  Increases or decreases in percentages may be re-stated as multiplications by the appropriate percentages, which, in turn, may be thought of as multiplications by fractions [H09].  It is a good idea to be able to inter-convert between fractions and percentages.  By comparison, we found the link between  19 units (or 19%)  and  228 [H11].  Having solved this part of the problem, we are able to answer the original question as asked.

H02. Use a diagram / model
H06. Use before-after concept
H09. Restate the problem in another way
H11. Solve part of the problem

Suitable Levels
Primary School Mathematics
* other syllabuses that involve percentages and ratios



Saturday, May 23, 2015

[S2_20150523XFDS] Numbers that can be Difference of Squares

Question

Introduction
     This is likely an primary mathematics olympiad-type of question, but lower secondary pupils can also try this.  It involves deeper thinking.  But where do we begin?  Sometimes it is good to begin from the beginning, and then follow your nose. 

Reminders

Solution
     Suppose  N  is a whole number such that  1 < N < 1000  and  N  can be expressed as
                                        N = a2b2  = (ab)(a + b)
a difference of squares.  So  N  can be split as a product of two factors  (a + b)  and  (ab).  Observe that     (a + b) – (ab) = 2b,       which is an even number.
     The difference between the two factors is an even number.  This can only mean that the two factors are  both odd  or  both even.  You cannot have one of them odd and the other even, because when you subtract them, you would get an odd number.  We now have three cases:-
     Case 1a:  N  is even but not divisible by 4.
     Case 1b:  N  is divisible by 4 (and, of course, is even)
     Case 2:    N  is odd  i.e. both  (a + b)  and  (ab)  are odd



Ans:  750

Remarks
     In the foregoing, it is possible for  b  to be zero.  0 happens to be a perfect square, because  02 = 0.  However, we need not worry about this, because the above algebra is general enough to cover the case where  b  is  0.
   We have solved the problem using logic, even-vs-odd analysis and the three important algebraic identities under reminders (highlighted in orange).  We also used the special cases (highlighted in light blue) and made observations based on them.

H04. Look for pattern(s)
H05. Work backwards
H09. Restate the problem in another way
H11. Solve part of the problem
H12* Think of a related problem
H13* Use Equation / write a Mathematical Sentence

Suitable Levels
Primary School Mathematics Olympiad
Secondary 2 Mathematics » grade 8 (expansion and factorisation)
* anyone who is game for a challenge in algebra and number theory





Tuesday, May 5, 2015

[S2 Expository] Square-of-Difference Identity for Algebra

     An algebraic identity is an equation that is true for all values of the variables involved.  If we substituted any set of values to the Left Hand Side (LHS) and the same values to the Right Hand Side (RHS), the equation will be true i.e. the LHS will always be equal to the RHS.  The square-of-difference identity
                                       

is one of the three identities that students have to learn in secondary two.  Many students have difficulty remembering this, and they mix this up with the other identity, which involves  a2b2.  However  (ab)2  is not the same as  a2b2.  They do not understand why the above formula is true, because almost nobody explains it.  Perhaps a few teachers explain the identity for  (a + b)2.  But if the  ‘+’  is changed to a  ‘–’  this is a little trickier.  Let me try to explain the formula visually, and with colours to boot, for perhaps the first time in history.

     We start (on the left) with a square of side  a,  whose area is  a2.  This is shown in green in the diagram.  We partition each side of the square into  ab  and  b.  Our goal is to get an area of   (ab)2.  Let us flip the strip of width  b  on the right of the square.  This strip has area  ab  and is shown in pink in the middle square.  This is the same as saying we are subtracting one copy of  ab.  Note on the bottom of the square, there is another strip of area  ab  (shown outlined in orange).  If we subtracted that, we would have subtracted  2ab  (see the square on the right), and we would seem to get  (ab)2.   But then the little square of area  b2  (indicated by a darker green) would have been subtracted twice.  So we need to add  b2  back, so as to restore balance in the universe. 
     You can imagine doing this with a square of area  a2  made of layer of sand.  We remove strips of area  ab  two times – from the right and from the bottom.  Then we patch up the  b2  hole by adding back a layer of sand.  We finally end up with a layer of sand of area  (ab)2.  This illustrates why  a2 – 2ab + b2 = (ab)2.
     Isn’t this kewl?

Suitable Levels
Lower Secondary Mathematics
* other syllabuses that involve algebra, expansion and factorisation




Friday, April 10, 2015

[S2_20150402RLD] Fifty balls left behind

Question
This problem can be solved with Primary School knowledge using ratios.  The famous Singapore bar diagramming method can be used to model the situation, but I prefer my own Distinguished Ratio Units.  The former method is good for visualisation for beginners, while the latter is faster if you want to solve it quickly without fussing around drawing the perfect diagram.  My DRU method is also visual in another way, and it works with big numbers as well as small numbers.  Alternatively, this can be solved using algebra via simultaneous equations.

Solution 1 (Using my Distinguished Ratio Units method) [H02]



Explanation: Since the number of white balls is a multiple of  3,  I let “triangle” 3 represent the number of white balls.  I let “heart” 1 represent the number of red balls.  There are 50 more white balls than red balls.  [H04]  When the white balls are removed three at a time, the number of groups of three would be one-third of the number of white balls, i.e. 1 triangle unit.  [H04]  This number is less than the number of red balls (1 heart unit) by 50.  So 1 triangle unit plus 50 gives 1 heart unit.  [H04]  Following on from the heart to the “triangle” 3, one realises that 2 “triangle” units is the same as  100.  [H05]  So one triangle unit is  50.  [H11]  From here we can solve the rest of the problem.

Solution 2 (using Algebra)  [H13, H05]
                     w = k + 50 = 3h             –––––––––– [1]
                     r  = k         =   h + 50     –––––––––– [2]
for some unknown  k  and  h.  And then [1] [2] gives  [H10]
                     w r = 50 = 2h 50
so                      2h = 50 + 50
                            h = 50
This quickly leads to
                           w = 150
and                       r = 100.


H02. Use a diagram / model
H04. Look for pattern(s)
H05. Work backwards
H09. Restate the problem in another way
H10. Simplify the problem
H11. Solve part of the problem
H13* Use Equation / write a Mathematical Sentence

Suitable Levels
Primary School Mathematics (“Ratio”)
Lower Secondary School (“Simultaneous Linear Equations”)
* other syllabuses that involve ratio or algebra

Monday, April 6, 2015

[OlympiadXPH20150405] Seats in a Hall as Pigeonholes?

Question
There are  25  rows of seats in a hall, each row having  30  seats.  If there are  680 people seated in the hall, at least how many rows have an equal number of people each?

Introduction
     This is a mathematics olympiad type of question for primary / elementary school, I believe.  Let us make sure we understand the question.  Each row of seats has a certain number of people, which I shall call the “headcount”.  We want all the headcounts to be as different as possible, and yet we do not want so many rows to have the same headcount.  The number of rows with the same headcount should be kept as low as possible.  How low is low?

Solution 1
     One strategy to solve this is to start filling up the empty seats with as many as possible.  Indeed this is the approach taken by the official “model answer”, which for copyright reasons I cannot show.  However I am going to do something even better: to explain the solution visually.  Recall that the sum of an arithmetic progression is 
                   ½ ´ number of terms ´ (first term + last term)
     After filling up the empty seats with different numbers of people, we would have filled up  30 + 29 + ... + 7 + 6 = ½ ´ 25 ´ (30 + 6) = 450  seats.  This is stage 1, shown in orangey-yellow in the diagram below.  We have now  230  people remaining to be seated. 

     For stage 2, we try to fill in the remaining seats with as many people as possible but keeping the headcounts all different.  So we ramp up  6 to 30,  7 to 29,  8 to 28, ... etc.  The additional number filled up is  24 + 22 + ... + 2 = ½ ´ 12 ´ (24 + 2) = 156.  This is stage 2, shown in green.  We have  74  seats remaining.
     For stage 3, we ramp up  18 to 30,  19 to 29,  20 to 28, ... etc.  The additional number filled up is  12 + 10 + ... + 2 = ½ ´ 6 ´ (12 + 2) = 42.  This is stage 3, shown in blue.  We have  32  seats remaining.
     For stage 4, we ramp up  19 to 30,  20 to 29,  21 to 28, ... etc.  The additional number filled up is  11 + 9 + 7 + 5 = 32.  We are done.  This is the final stage, shown in pink. 

Discussion
     It turns out that there is another way to look at the problem.  The above solution can be depicted in a “ball and bin diagram” as shown below.


There are  25  balls in the diagram, each representing a row’s headcount.  There are  4  rows with 30 people,  4 rows with 29 people, ...,  3 rows with 26 people,  3 rows with 25 people,  2 rows with 24 people, and  1 rows with 26 people.  We can actually calculate the totals for rows with repeated headcounts.  For example in the diagram, there are  4  layers of balls with each layer representing 30 + 29 + 28 + 27 (shown in dark turquoise) and the sum is = 4 ´ [½ ´ 4 ´ (30 + 27) ] = 456.  Those with rows with three of the same headcounts total up to  153  (shown in pink).  The rows with two of the same headcounts total up to  48  (shown in yellowish green).  There is one and only one row with  23  (shown in dirty green).  All this give a grand total of  680.  We can calculate the grand total  for every ball and bin diagram in this fashion.  We want a grand total of  680 and there must be 25 balls.  Using this diagram and a generalised version of the Pigeonhole Principle, we can have a very short and sweet solution.  Before that, let me briefly explain the Pigeonhole Principle.

     Let us say there are 30 pigeonholes and 31 envelopes.  We can represent this with a ball and bin diagram using 30 columns (for pigeonholes) and 31 balls (representing the envelopes).  If you try to put one envelope into each pigeonhole it is impossible.  One of the pigeonholes will have two envelopes.  In the ball and bin diagram, there will be at least column with two balls.  If you try to put everything flat to one layer, that is 30 balls and you still have one ball left.  You will have to put this remaining ball somewhere on the second layer.  This illustrates the Pigeonhole Principle.

     Likewise if you have  91  balls and  30 columns, there must be one column with  4  balls.  If it is all  3  balls, that fills with only 90 balls.  Your remaining ball has to go somewhere on the fourth layer.  This illustrates the Extended (or Generalised) Pigeonhole Principle.

Solution 2
     I am going to further extend the Pigeonhole Principle to Pigeonholes with Valuations (with some number attached to each configuration e.g. grand total).  We have 25 balls and 30 bins (columns) and we want to fill up the grand total number as quickly as possible achieving a grand total of  680, using as few layers as possible.


     Starting from  30  downwards and, using  3  layers,  we have  8  balls for each layer, filling all the colums for  30,  29,  ... ,  23.  We now have used up  3 ´ 8 = 24 balls that represents a grand total of  3 ´ [½ ´ 8 ´ (30 + 23) ] = 636.  There are 44 seats left over, but only one remaining ball.  The best we can do is to put the remaining ball at  22  for one layer.  That leaves  22 unallocated seats.  So  3  layers are not enough.  We need  4  layers.


     To show that  4  layers are enough, we can imagine filling up  4  layers of  30 + 29 + ... + 25.  That gives a grand total of  4 ´ [½ ´ 6 ´ (30 + 25) ] = 660,  with  20 left over.  This can be handled by putting the remaining ball on  20  for one layer.  And we are done.  The latter configuration is an alternative configuration to the one given in the model answer.  But most importantly, it works.  We have shown that at there must be least  4   rows with the same number of people each.  

Note
1.  There can be more than one set of  4  rows with the same number of people each, but we just need to show that there exists (one set or more of)  4   rows with the same headcounts.
2.  One can imagine configurations that have  5  rows with the same number each, but it would not be “least”.
3.  To answer the question in the title of this article, the seats are not the pigeonholes.  Rather, the pigeonholes (or bins, or columns) represent possible numbers of people in a row.  Each ball in bin  j  represents a row that has  j  people.

H02. Use a diagram / model
H03. Make a systematic list
H04. Look for pattern(s)
H05. Work backwards
H06. Use before-after concept
H07. Use guess and check
H08. Make suppositions
H09. Restate the problem in another way
H11. Solve part of the problem






Monday, March 9, 2015

[Pri20150308CSR] Charitable Savings Ratios?

Question

Introduction
     Here is another one of those Singapore Mathematics problems that are two-variable simultaneous equations in disguise.  The key to solving this question quickly is to exploit the fact that the amount of donations are the same in this case.

Solution
     First, read the question and translate the information into a diagram [H02. Use a diagram / model].  I use different shapes (e.g. circle and square) to envelop the different types of units.

     Since we have ‘-80’  for both Sharon and Ryan [H04. Look for pattern(s)], we may deduce that 1 ‘circle’ unit  (5 minus 4 ‘circle’ units) is equal to 3 ‘square’ units (10 minus 7 ‘square’ units).  That means 5 ‘circle’ units is 15 ‘square units’.  [ H10. Simplify the problem]

     By comparison again, we realise that 5 square units is 80 [H05. Work backwards] and hence 15 ‘square’ units is 240.

Ans: Sharon’s savings was $240 at first.

Check
Before    $240   $192      5 : 4
After      $160   $112     10 : 7

Solution makes sense.

H02. Use a diagram / model
H04. Look for pattern(s)
H05. Work backwards
H10. Simplify the problem

Sunday, March 8, 2015

[Pri20150306APC] Apples-with-Pears Comparison

Question

Introduction
     This question involves money and looks rather challenging, because there are a few unknown quantities.  To solve it, we use the concept of unit costs, so that we can make an “apples-to-apples” ... er ... I mean “pears-to-apples” J comparison of the prices.

Solution
     Since absolute dollar amounts are given, we can quickly solve [H11. Solve part of the problem] for the total costs of pears and apples as follows [H02. Use a diagram / model]:-

     Now we know that the total cost (in dollars) of pears is 45 and for the apples it is 50 (5 more than 45).  Although we do not know the absolute numbers of pears and apples, we know their ratio.  So let us write these down as, say, ‘square’ units. 


     Dividing the total costs by the numbers gives the unit costs, which we know only in ratio terms.  So let us use, say, ‘circle’ units to denote these.  But we know that the unit cost (in $) of an apple is 0.50 less than that of a pear.  And that is equivalent to 5 ‘circle’ units.  From here [H05. Work backwards], we quickly work out the cost of a pear (15 ‘circle’ units) as $1.50.

     Ta da!

H02. Use a diagram / model
H05. Work backwards
H11. Solve part of the problem

[Pri20150306COH] The Cards of Hearts?


Question

Introduction

     For this question, I shall illustrate my technique of Distinguished Ratio Units to model the situation.  Read the question carefully and translate the information into a diagram [ using heuristic H02 ] like below:-




     I used three different shapes (circle, triangle and square) to envelop the numerical counts of the different kinds ratio units. Although we do not know how many circle units’ worth of cards Kelly had at first, we quickly notice that  9 circle units are equivalent to 3 triangle units, so that one triangle unit is the same as 3 circle units.  So Kelly had 2 circle units’ worth of cards [ heuristic H05 ], as depicted below:-

 
This allows us to answer part (a) of the question already, namely that the required ratio is 10 : 2 i.e. 5 : 1.  With different types of units, it is difficult to compare things.  However, note that in the exchange of cards, the total number of cards remains constant.  Taking the LCM of 12, 4 and 11 which is 132, we can change all the ratio units to a common type of unit [ H09], say ‘heart’ unit, based on the total being 132 ‘heart’ units.  To do that, we can multiply the numerical counts in columns 1 & 2 by 11, multiply column 3 by 33 and multiply column 4 by 12.  This is what we would get:-

     To answer part (b) of the question, we actually do not need to bother about columns 2 and 3.  Just focus on columns 1 and 4.  From column 4 we observe that 84 minus 48 which is 36 ‘heart’ units gives 72, so one ‘heart’ unit corresponds to 2.  The number of cards won by Kelly can be found by comparing the 84 ‘heart’ units and 22 ‘heart’ units highlighted in yellow.


  That means 62 ‘heart’ units and that corresponds to 134.  And we are done!

Answer (a)   5 : 1
              (b)   134


H02. Use a diagram / model
H05. Work backwards
H09. Restate the problem in another way

Thinking Back

     In this question, we have used Distinguished Ratio Units to model the given situation.  We worked backwards to find that Kelly’s initial holdings were worth 2 circle units.  Then we converted everything to a common unit (‘heart’ unit) based on the constant total of 132 heart units.  Once again, I © hearts!