Lottery also comes in numbers!

A lottery comes in form of 6-digit numbers from 000000 000000 to 999999 999999 .

Let us call a lottery lucky if the sum of the first 3 digits are equal to the last 3 digits. For example, 456177 456177 is lucky because 4 + 5 + 6 = 1 + 7 + 7 4+5+6 = 1+7+7 .

And let us call a lottery good if the sum of all digits is 27. For example, 345456 345456 is good because 3 + 4 + 5 + 4 + 5 + 6 = 27 3+4+5+4+5+6 = 27 .

If the number of different possible lotteries that are lucky is a a , and the number of different possible lotteries that are good is b b , find the value of a b a-b .


This question is from Thailand Math POSN, Combinatorics.


The answer is 0.

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.

1 solution

Let L L be the set of lucky numbers and G G be the set of good numbers. We want to prove that there is a bijection between the two sets.

First, we see that for any lucky number a b c d e f abcdef with a + b + c = d + e + f a + b + c = d + e + f , if we replace d , e , f d,e,f with 9 d , 9 e , 9 f 9-d,9-e,9-f , we get a good number. We also see that no two lucky numbers can give the same good number, as it would mean that they are the same.

Likewise, for any good number a b c d e f abcdef , we can get a lucky number by replacing d , e , f d,e,f with 9 d , 9 e , 9 f 9-d , 9 - e, 9 - f . Also, as above, no two good numbers can give the same lucky number.

Therefore, a bijection exists between the sets and a b = 0 a - b= 0 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...