St.Petersburg 1989

For discussing Olympiad Level Combinatorics problems
tanmoy
Posts:312
Joined:Fri Oct 18, 2013 11:56 pm
Location:Rangpur,Bangladesh
St.Petersburg 1989

Unread post by tanmoy » Sat Feb 07, 2015 10:37 pm

Tram tickets have six-digit numbers(from $000000$ to $999999$).A ticket is called $lucky$ if the sum of its first three digits is equal to that of its last three digits.A ticket is called $medium$ if the sum of all of its digits is $27$.Let $A$ and $B$ denote the numbers of $lucky$ tickets and $medium$ tickets,respectively.Find $A-B$.
(I have solved this using $\text{Generating Function}$ :D .But the solution consists of many calculations :( .So,I want to see a easy and nice solution.)
"Questions we can't answer are far better than answers we can't question"

Post Reply