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 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 ?
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.
I had the same solution at first but then I added the case ( 9 3 5 ) to it for some reason.
Awesome solution! Here's an upvote
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.
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 ( 1 0 2 5 + 1 0 ) , or ( 1 0 3 5 ) , the last 3 digits of which are 396 .
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
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.
Log in to reply
Got it. Never decrease.
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.
Let Peter's marks in the i th year be m i . Clearly, from the condition specified, 2 5 ≤ m 1 ≤ m 2 ≤ ⋯ ≤ m 1 0 ≤ 5 0 . The number of solutions to this equation is ( 1 0 1 0 + 2 5 ) = 1 8 3 5 7 9 3 9 6 . 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.....
Log in to reply
@Rohan, I just want to explain Paramjit's solution. Let, m x + 1 - m x = a x + 1 , 1 ≤ x ≤ 9 and a 1 = m 1 − 2 5 and a 1 1 = 5 0 − m 1 0 . So each a i , 1 ≤ i ≤ 1 1 , are just non-negative numbers such that a 1 + a 2 + … + a 1 1 = 2 5 . And we know that, the number of ways in which the sum of k non-negative numbers can be n is ( k − 1 n + k − 1 ) . And so the answer would be ( 1 1 − 1 2 5 + 1 1 − 1 ) or ( 1 0 2 5 + 1 0 ) :)
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.
thanks Nayeemul :D
Here is another way to look at this problem. We are basically find the number of solutions to: 0 ≤ x 1 ≤ x 2 ≤ . . . ≤ x 1 0 ≤ 2 5 . Now, shift x 2 to x 1 0 by 1 to the right (adding 1), then shift x 3 to x 1 0 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 1 0 ≤ 3 4 , which is ( 1 0 3 5 ) .
Log in to reply
It's the same. Just having shifted the number line.
Applying the combinations formula (with repetition), or i dont know how's called in english... Anyways, that is:
( r n + r − 1 )
So in this case we substitute n = 2 6 (since from 2 5 to 5 0 there are 5 0 − 2 5 + 1 = 2 6 numbers), and r = 1 0 .
1 0 ! ⋅ 2 5 ! 3 5 !
The big question is: "how am I going to compute this without calculator?" Well, let's try to simplify in some way...
1 0 ! 2 6 ⋅ 2 7 ⋅ … ⋅ 3 4 ⋅ 3 5
= 6 ⋅ 8 ⋅ 9 ⋅ 1 0 1 3 ⋅ 9 ⋅ 7 ⋅ 2 9 ⋅ 6 ⋅ 3 1 ⋅ 3 2 ⋅ 3 3 ⋅ 3 4 ⋅ 5
= 2 2 ⋅ 3 ⋅ 7 ⋅ 1 1 ⋅ 1 3 ⋅ 1 7 ⋅ 2 9 ⋅ 3 1
That I turned to the form
1 2 0 1 2 ⋅ 1 5 2 8 3
You know.. With a lot of patience we get
1 8 3 5 7 9 3 9 6
Thus, the last 3 digits of N are
3 9 6 .
Well, you could use modular arithmetic. Notice that 7 ⋅ 1 1 ⋅ 1 3 = 1 0 0 1 . So we can throw away that part. Then notice that 2 9 ⋅ 3 1 = ( 3 0 − 1 ) ( 3 0 + 1 ) = 9 0 0 − 1 and 3 ⋅ 1 7 = 5 1 = 5 0 + 1 . Therefore 2 2 ⋅ 3 ⋅ 7 ⋅ 1 1 ⋅ 1 3 ⋅ 1 7 ⋅ 2 9 ⋅ 3 1 ≡ ( 9 0 0 − 1 ) ( 2 0 0 + 4 ) ≡ 3 6 0 0 − 2 0 0 − 4 ≡ 3 9 6 m o d 1 0 0 0 .
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.
george will u please explain this further as y u did not write 200*900 also what about multiplying 1001 i didn't get
number of compositions of 36 into 11 parts
eetryygg///////////////???????????????/
Problem Loading...
Note Loading...
Set Loading...
For i = 1 , 2 , … , 1 0 , let m i be the i th mark that Peter received, and for each i = 1 , 2 , … , 9 , let a i = m i + 1 − m i (the difference between consecutive marks).We note that
2 5 ≤ m 1 ≤ 5 0 .
a i ≥ 0 for all i , since Peter's scores never decreased.
Since his last score is no more than 5 0 , we must have
a 1 + a 2 + … + a 9 = ( m 2 − m 1 ) + ( m 3 − m 2 ) + … + ( m 1 0 − m 9 ) = m 1 0 − m 1 ≤ 5 0 − m 1 .
Notice that if we choose m 1 and a 1 , … , a 9 satisfying these conditions, then the rest of the m i are uniquely determined. Conversely, if we choose the m i satisfying the conditions, then the a i are uniquely determined. So, we've established a bijection: for each m 1 = 2 5 , 2 6 , … , 5 0 , we want to count the number of ordered tuples ( a 1 , a 2 , … , a 9 ) of nonnegative integers such that
a 1 + a 2 + … + a 9 ≤ 5 0 − m 1 .
Let this be f ( m 1 ) ; then, we want to find the value of
m 1 = 2 5 ∑ 5 0 f ( m 1 ) .
Now, if a 1 + a 2 + … + a 9 ≤ 5 0 − m 1 , then there must be some nonnegative integer x so that
a 1 + a 2 + … + a 9 + x = 5 0 − m 1 .
Interpret x as the difference between 5 0 − m 1 and a 1 + … + a 9 . Then, we see that each possible choice of ( a 1 , … , a 9 ) corresponds to a choice of ( a 1 , … , a 9 , x ) , and vice versa (another bijection!) By the balls-and-urns (AKA stars-and-bars) approach, there are ( 9 5 9 − m 1 ) ways to pick a 1 , a 2 , … , a 9 , x , so there are ( 9 5 9 − m 1 ) ways to pick a 1 , a 2 , … , a 9 , under our original condition. Thus,
f ( m 1 ) = ( 9 5 9 − m 1 ) .
Then we have
m 1 = 2 5 ∑ 5 0 f ( m 1 ) = m 1 = 2 5 ∑ 5 0 ( 9 5 9 − m 1 ) = ( 9 3 4 ) + ( 9 3 3 ) + … + ( 9 9 ) , which equals ( 1 0 3 5 ) = 1 8 3 5 7 9 3 9 6 by the Hockey Stick Identity. The answer is 3 9 6 .