Jump to content
BrainDen.com - Brain Teasers
  • 0


Guest
 Share

Question

5040 distinct seven digit base ten positive integers X1, X2, ...., X5040 are such that each Xi is formed by using each of the digits from 1 to 7 exactly once.

Determine the remainder when X1 + X2+ .......+ X5040 is divided by 7.

Edited by K Sengupta
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

5040 distinct seven digit base ten positive integers X1, X2, ...., X5040 are such that each Xi is formed by using each of the digits from 1 to 7 exactly once.

Determine the remainder when X1 + X2+ .......+ X5040 is divided by 7.

If a number is abcdefg

Then it is simply a*10^6 + b*10^5 + c*10^4 + ... + g*10^0

Consider the one's place.

Taking into account all permutations, the ones place will be occupied by each digit 1 to 7 with uniform frequency.

Because there are 7! permutations, each digit will have 6! instances when it will appear in the one's place.

Summing together all of the one's places for all 5040 numbers, you can factor out 6! to get 6!*(1+2+3+4+5+6+7)

But 1+2+3+4+5+6+7 = 28 which is congruent to 0 mod 7.

Thus the sum of all one's place digits is divisible by 7.

For 10's place digits, the final sum is 10*6!*28 which is divisible by 7 also

For 100's place, the sum is 100*6!*28 which is divisible by 7

...

...

Each of these seven sums is divisible by 7, so in turn, their sum is divisible by 7.

Thus the remainder is 0.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...