A probability problem by Prabhav Bansal

How many 7-digit numbers are there formed by using only the digits 5 and 7 and divisible by both 5 and 7?

11 7 5 9 1 3

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

Prabhav Bansal
Aug 21, 2015

Clearly, the last digit must be 5 and we have to determine the remaining 6 digits. For divisibility by 7, it is sufficient to consider the number obtained by replacing 7 by 0; eg, 5775755 is divisible by 7, if and only if 5005055 is divisible by 7. Each such number is obtained by adding some of the numbers from the set{50, 500, 5000 ,50000, 500000, 5000000} along with 5.

We look at the remainders of these when divided by 7; they are {1, 3, 2, 6, 4, 5}. Thus it is sufficient to check for those combinations of remainders which add up to a number of the form 2+7k, since the last digit is already 5. There are {2 ; 3,6 ; 4,5 ; 2,3,4 ; 1,3,5 ; 1,2,6 ; 2,3,5,6 ; 1,4,5,6 ; 1,2,3,4,6}.

These correspond to the numbers 7775775, 7757575, 5577775, 7575575, 5777555, 7755755, 5755575, 5557755, 7555555. Hence the answer comes out to be 9.

Moderator note:

It would be easier to read your solution if you separate it out into paragraphs based on the ideas that you have. This allows the reader to follow along, and mentally take a break when you have fully demonstrated a certain fact. I've done this for your solution, so you can refer to it.

It would be easier to read your solution if you separate it out into paragraphs based on the ideas that you have. This allows the reader to follow along, and mentally take a break when you have fully demonstrated a certain fact. I've done this for your solution, so you can refer to it.

Calvin Lin Staff - 5 years, 9 months ago

Log in to reply

Thanks. I'll take care

Prabhav Bansal - 5 years, 9 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...