Showing posts with label representation. Show all posts
Showing posts with label representation. Show all posts

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






Tuesday, March 3, 2015

[Pri20150302BGP] Boys, Girls and Party

Question
A group of pupils met at a party. Each child exchange phone number with everyone else. Melissa exchange phone number with 5 times as many boys as girls. Peter exchange phone numbers with 4 times as many boys as girls. How many boys and girls were at the party?



Solution


In the set up stage, we read the question carefully and transfer the information into a good representation.  I am using my Distinguished Ratio Units method i.e. using different shapes for different types of ratio units.We set up as follows:  One row for boys (B) and one row for girls.  Reserve one column for ‘original’.  In the first scenario, if you subtract 1 (Melissa) from the girls, you get 1 unit (let’s use a circle to mark it) and then the boys would be 5 circle units.  In the second scenario, if you subtract 1 (Peter) from the boys, you would get 4 units (let’s use triangle) for the boys as compared to 1 triangle unit for the girls.

Going back to the ‘original’ column, we use circle 5 to represent the number of boys (as this was unchanged in the first scenario), and we use triangle 1 to represent the number of girls (as this was unchanged in the 2nd scenario).




With the set-up done, now my plan is to try to match up one of the types of units (either circle or triangle units).  I choose to match up the triangle units.  Take the relation indicated in yellow for Melissa that says ‘1 triangle unit minus 1 gives 1 circle unit’.  When we multiply this by 4, we get ‘4 triangle unit minus 4 gives 4 circle units’ and then we link this up the the existing triangle 4 (highlighted in yellow on the right).  We see that from circle 5, when you subtract 1 and then subtract 4, you get circle 4. 

This means that 1 circle unit is 5.  Adding 1, we see that 1 triangle unit is 6.  5 circle units makes 25.  The total number being 5 circle units and 1 triangle unit, we add up 6+25 and get 31, which is the answer. 


Commentary

In this word "problem", you start of with two original quantities and when you add/subtract something from one of the quantities, you get a certain ratio, and when you add/subtract from the other quantity you end up with another ratio.  This is a typical difficult type of question that stumps many students and many parents who trying to help them.

Many word "problems" in Singapore's Primary School Mathematics curriculum are just linear simultaneous equations in two variables in disguise.  The pupils will revisit this sort of maths problems in their secondary school years under algebra.  For primary school, simple algebra is taught but not emphasised.  Singapore is famous for her "Bar Model Method".  This method is good for visualisation for pupils at the lower primary levels.  However, at primaries 5 and 6 (~ roughly equivalent to grades 5 and 6), the numbers get bigger and the types of problems get harder.  You often have to cut or draw many bars.  It is especially challenging to draw bars to a suitable estimated length and if you draw the bars wrongly, you often have to erase the whole thing and redraw.  In their year 6, pupils take the Primary School Leaving Examination (PSLE), a high-stakes examination that determines the secondary school and stream (track) that they will go to. .  Many anxious parents and tutors cope by teaching the kids algebra.  However, algebra seems to be socially frowned upon and used only as a last resort.

Last year, reflecting on the above-mentioned challenges, and upon realising that many people use the same letter "u" (for unit) or same bar to represent different types of units and end up getting confused, I cooked up my Distinguished Ratio Units method.  It is powerful and avoids the need to draw and redraw the diagram, hence allowing the pupil to concentrate on the thinking and solving, rather than wasting time with drawing.  I admit that my method is actually algebra in disguise.  The bridging tactic where you equalise one unit to allow the other type of unit to connect is like substitution and elimination.  One triangle unit and one circle unit, for example, can be interpreted as variables x and y, preparing the pupils for secondary school.  The triangle and circle units also link with the concept of ratios which they have learnt in their middle primary years.  By the way, you do not need to use triangles and circles.  You can use squares, diamonds, heart shape etc.  Who says you cannot be creative in mathematics?

I hope you like my new method.

Here is a related problem.