Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Other Topics > Science, Math, and Philosophy
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 11-04-2007, 04:15 AM
sirio11 sirio11 is offline
Senior Member
 
Join Date: Aug 2003
Location: I\'m mad as hell and I can\'t take it anymore ....
Posts: 3,516
Default Solution Russia National Contest Pr 1998-7

The digits are all distinct, so you need to use all of them for the 10 digit numbers.

Now 0+1+2+...+9 = 45, so all the numbers are multiples of 9, since 11111 is not, then the numbers must be multiples of 99999

Let N = abcdefghij = abcde00000 + fghij
Lets call p = abcde and q = fghij then N = 100000p + q = 99999p + p + q

Since N must be multiple of 99999, then p+q is a multiple of 99999 and since p,q are 5 digits numbers, the only possibility is for their sum to be 99999; therefore

a+f=9 b+g=9 c+h=9 d+i=9 e+j=9

a can be chosen 9 ways (can't be zero), once a is chosen, f is fixed, now b can be chosen of 8 ways (no a,f); c has 6 ways, d has 4 ways and e has 2, so the final answer is:

9*8*6*4*2 = 3456 numbers


Another way to count them:

You have 5 couples {a,f},{b,g},{c,h},{d,i},{e,j}

These can be chosen of 5! ways, and each couple has 2 options, so you have 5!*2^5 ways, but here we are counting some numbers with a=0, we need to discount those, if a=0, f=9 and we have 4!*2^4 ways for the other couples, then our number will be:

5!*32 - 4!*16 = 4!*16(5*2-1) = 24*16*9 = 3456
Reply With Quote
  #12  
Old 11-04-2007, 09:19 AM
jay_shark jay_shark is offline
Senior Member
 
Join Date: Sep 2006
Posts: 2,277
Default Re: Solution Russia National Contest Pr 1998-7

Yes Sirio that's correct .

It really is a simple permutations problem once you figure out the constraints I gave earlier . For some reason I neglected that the integers were distinct when I wrote up the solution late last night , but it's fairly straightforward otherwise .
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:36 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.