Excessively Demanding School

At Peter's school, to progress to the next year, he has to pass an exam every summer. Every exam is out of 50 and the pass mark is always 25. To graduate from school, he must pass 10 exams. Since Peter's work ethic increases with age, his scores never decrease.

Let N N be the number of different series of marks Peter could have achieved, given that he left school without ever failing an exam. What are the last 3 digits of N N ?


The answer is 396.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

6 solutions

Michael Tang
Jan 14, 2014

For i = 1 , 2 , , 10 , i = 1, 2, \ldots, 10, let m i m_i be the i i th mark that Peter received, and for each i = 1 , 2 , , 9 , i = 1, 2, \ldots, 9, let a i = m i + 1 m i a_i = m_{i+1}-m_i (the difference between consecutive marks).We note that

  1. 25 m 1 50. 25 \le m_1 \le 50.

  2. a i 0 a_i \ge 0 for all i , i, since Peter's scores never decreased.

  3. Since his last score is no more than 50 , 50, we must have

a 1 + a 2 + + a 9 = ( m 2 m 1 ) + ( m 3 m 2 ) + + ( m 10 m 9 ) = m 10 m 1 50 m 1 . \begin{aligned} a_1 + a_2 + \ldots + a_9 &= (m_2-m_1) + (m_3-m_2) + \ldots + (m_{10}-m_9) \\ &= m_{10} - m_1 \\ &\le 50 - m_1. \end{aligned}

Notice that if we choose m 1 m_1 and a 1 , , a 9 a_1, \ldots, a_9 satisfying these conditions, then the rest of the m i m_i are uniquely determined. Conversely, if we choose the m i m_i satisfying the conditions, then the a i a_i are uniquely determined. So, we've established a bijection: for each m 1 = 25 , 26 , , 50 , m_1 = 25, 26, \ldots, 50, we want to count the number of ordered tuples ( a 1 , a 2 , , a 9 ) (a_1, a_2, \ldots, a_9) of nonnegative integers such that

a 1 + a 2 + + a 9 50 m 1 . a_1 + a_2 + \ldots + a_9 \le 50-m_1.

Let this be f ( m 1 ) f(m_1) ; then, we want to find the value of

m 1 = 25 50 f ( m 1 ) . \displaystyle\sum_{m_1=25}^{50} f(m_1).

Now, if a 1 + a 2 + + a 9 50 m 1 , a_1 + a_2 + \ldots + a_9 \le 50 - m_1, then there must be some nonnegative integer x x so that

a 1 + a 2 + + a 9 + x = 50 m 1 . a_1 + a_2 + \ldots + a_9 + x = 50 - m_1.

Interpret x x as the difference between 50 m 1 50-m_1 and a 1 + + a 9 . a_1 + \ldots + a_9. Then, we see that each possible choice of ( a 1 , , a 9 ) (a_1, \ldots, a_9) corresponds to a choice of ( a 1 , , a 9 , x ) , (a_1, \ldots, a_9, x), and vice versa (another bijection!) By the balls-and-urns (AKA stars-and-bars) approach, there are ( 59 m 1 9 ) \dbinom{59-m_1}{9} ways to pick a 1 , a 2 , , a 9 , x , a_1, a_2, \ldots, a_9, x, so there are ( 59 m 1 9 ) \dbinom{59-m_1}{9} ways to pick a 1 , a 2 , , a 9 , a_1, a_2, \ldots, a_9, under our original condition. Thus,

f ( m 1 ) = ( 59 m 1 9 ) . f(m_1) = \dbinom{59-m_1}{9}.

Then we have

m 1 = 25 50 f ( m 1 ) = m 1 = 25 50 ( 59 m 1 9 ) = ( 34 9 ) + ( 33 9 ) + + ( 9 9 ) , \begin{aligned} \displaystyle\sum_{m_1=25}^{50} f(m_1) &= \displaystyle\sum_{m_1=25}^{50} \dbinom{59-m_1}{9} \\ &= \dbinom{34}{9} + \dbinom{33}{9} + \ldots + \dbinom{9}{9}, \end{aligned} which equals ( 35 10 ) = 183579396 \dbinom{35}{10} = 183579396 by the Hockey Stick Identity. The answer is 396 . \boxed{396}.

I had the same solution at first but then I added the case ( 35 9 ) \binom{35}{9} to it for some reason.

Awesome solution! Here's an upvote

Sean Elliott - 7 years, 4 months ago

Nice - I think you can simplify all of the work if you let a0 = m1 - 25 and a10 = 50-m10, as then you eliminate all of the variables, and then you can apply stars and bars.

Zachary Marinov - 1 year, 1 month ago
Tory Tsai
Jan 21, 2014

First, we notice that if we choose 10 passing scores (from 25 to 50), there is exactly 1 unique ordering of those scores such that the scores are in a non-decreasing order. So, we just have to find a way to choose all the unique combinations of 10 scores from 25 to 50 to solve this problem, since each combination translates to exactly 1 permutation. Thus, we have turned our permutation problem into a combination problem.

Next, we realize that this is simply a stars and bars problem--we have 10 exams, and we need to assign each one a score, or place it into a "score bin," if you will. This is as if we had 10 balls which we had to place into 26 boxes, except the balls are exams and the boxes are scores (from 25 to 50). So then, using stars and bars, the number of stars is 10, and the number of bars is 25, which means that the solution is simply ( 25 + 10 10 ) {25+10 \choose 10} , or ( 35 10 ) {35 \choose 10} , the last 3 digits of which are 396 .

Shamik Banerjee
Jan 14, 2014

Using Stars and Bars (combinatorics) concept, we get N = C(10+26-1, 26-1) = C(35, 25) = C(35, 10) = 183579396

The last 3 digits of N i.e. N (mod 1000) = 396.

http://en.wikipedia.org/wiki/Stars and bars_%28combinatorics%29

Shamik Banerjee - 7 years, 4 months ago

There are 26 different possible passing scores, 25 through 50. His 10 scores must be from those 26 possibilities. That means C(26,10) = 5311735 possible ways to get those scores. Each of those combinations has only one ordering that increases from smallest to largest. So, the last three digits are 735.

What am I missing? I don't see where the 35 is coming from.

Brad Morin - 7 years, 4 months ago

Log in to reply

Got it. Never decrease.

Brad Morin - 7 years, 4 months ago

Log in to reply

Although, it is confusing to say his work ethic increases with age, even in the case where he got a score or 25 each of the ten years. One would be more incline to say his work ethic never deteriorated.

Brad Morin - 7 years, 4 months ago

Let Peter's marks in the i i th year be m i m_i . Clearly, from the condition specified, 25 m 1 m 2 m 10 50 25 \leq m_1 \leq m_2 \leq \cdots \leq m_{10} \leq 50 . The number of solutions to this equation is ( 10 + 25 10 ) = 183579396 {10 + 25 \choose 10} = \boxed{183579396} . You may refer Jatin's post for details of the number of solutions part.

Paramjit, can you please explain . I am unable to follow the solution which Jatin wrote as well.....

Rohan Chandra - 7 years, 4 months ago

Log in to reply

@Rohan, I just want to explain Paramjit's solution. Let, m x + 1 m_{x + 1} - m x m_x = a x + 1 a_{x+1} , 1 x 9 1 \leq x \leq 9 and a 1 = m 1 25 a_1 = m_1 - 25 and a 11 = 50 m 10 a_{11} = 50 - m_{10} . So each a i , 1 i 11 a_i, 1 \leq i \leq 11 , are just non-negative numbers such that a 1 + a 2 + + a 11 = 25 a_1 + a_2 + \ldots +a_{11} = 25 . And we know that, the number of ways in which the sum of k k non-negative numbers can be n n is ( n + k 1 k 1 ) {n + k - 1 \choose k - 1} . And so the answer would be ( 25 + 11 1 11 1 ) {25 + 11 - 1 \choose 11 - 1} or ( 25 + 10 10 ) {25 + 10 \choose 10} :)

Nayeemul Islam Swad - 7 years, 4 months ago

Log in to reply

Thanks Nayeemul! Anyway Rohan, you could click on the link (the blue written word 'post') to redirect yourself to the note Jatin shared regarding the number of solutions part.

A Brilliant Member - 7 years, 4 months ago

Log in to reply

@A Brilliant Member thanks :D

Rohan Chandra - 7 years, 4 months ago

thanks Nayeemul :D

Rohan Chandra - 7 years, 4 months ago

Here is another way to look at this problem. We are basically find the number of solutions to: 0 x 1 x 2 . . . x 10 25 0 \le x_1 \le x_2 \le ... \le x_{10} \le 25 . Now, shift x 2 x_2 to x 10 x_{10} by 1 to the right (adding 1), then shift x 3 x_3 to x 10 x_{10} by 1 to the right and so on, so we have shifted a total of 9 to the right, therefore, the problem becomes finding the number of solutions to: 0 x 1 < x 2 < x 3 < . . . < x 10 34 0 \le x_1 < x_2 < x_3 < ... < x_{10} \le 34 , which is ( 35 10 ) \dbinom{35}{10} .

Tong Zou - 7 years, 4 months ago

Log in to reply

It's the same. Just having shifted the number line.

A Brilliant Member - 7 years, 4 months ago

Applying the combinations formula (with repetition), or i dont know how's called in english... Anyways, that is:

( n + r 1 r ) {n + r - 1 \choose r}

So in this case we substitute n = 26 n = 26 (since from 25 25 to 50 50 there are 50 25 + 1 = 26 50 - 25 + 1 = 26 numbers), and r = 10 r = 10 .

35 ! 10 ! 25 ! \frac {35!}{10!\cdot 25!}

The big question is: "how am I going to compute this without calculator?" Well, let's try to simplify in some way...

26 27 34 35 10 ! \frac {26 \cdot 27 \cdot \ldots \cdot 34 \cdot 35}{10!}

= 13 9 7 29 6 31 32 33 34 5 6 8 9 10 = \frac {13\cdot 9\cdot 7\cdot 29\cdot 6\cdot 31\cdot 32\cdot 33\cdot 34\cdot 5}{6\cdot 8\cdot 9\cdot 10}

= 2 2 3 7 11 13 17 29 31 = 2^{2}\cdot 3\cdot 7\cdot 11\cdot 13\cdot 17\cdot 29\cdot 31

That I turned to the form

12012 15283 12012\cdot 15283

You know.. With a lot of patience we get

183579396 183579396

Thus, the last 3 3 digits of N N are

396 \boxed {396} .

Well, you could use modular arithmetic. Notice that 7 11 13 = 1001 7\cdot11\cdot13 = 1001 . So we can throw away that part. Then notice that 29 31 = ( 30 1 ) ( 30 + 1 ) = 900 1 29\cdot31 = (30-1)(30+1) =900-1 and 3 17 = 51 = 50 + 1 3\cdot17 = 51=50+1 . Therefore 2 2 3 7 11 13 17 29 31 ( 900 1 ) ( 200 + 4 ) 3600 200 4 396 m o d 1000. 2^2\cdot3\cdot7\cdot11\cdot13\cdot17\cdot29\cdot31 \equiv (900-1)(200+4) \\ \equiv 3600 -200 -4 \equiv 396 \bmod 1000.

George G - 7 years, 4 months ago

Log in to reply

Yes!! Thanks. I'm not very experienced in modular arithmetic yet :( But I understand the notation and process, it's just that in problems like this, modular arithmetic isn't coming to my mind yet.

Diego E. Nazario Ojeda - 7 years, 4 months ago

george will u please explain this further as y u did not write 200*900 also what about multiplying 1001 i didn't get

MOHD SHAHNAWAZ QURESHI - 7 years, 3 months ago

number of compositions of 36 into 11 parts

eetryygg///////////////???????????????/

shashi shekhar - 7 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...