Lucky numbers

A seven digit number A B C D E F G \overline{ABCDEFG} is called lucky number if A B C = D E F \overline{ABC} = \overline{DEF} and/or A B C = E F G \overline{ABC} = \overline{EFG} . Find the number of all lucky numbers.


The answer is 17991.

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

Shandy Rianto
Sep 2, 2015

First, I would like to find the number of lucky number if A B C = D E F \overline{ABC} = \overline{DEF} .

Since A B C = D E F \overline{ABC} = \overline{DEF} , we simply find the possible number of A B C \overline{ABC} which is 9 × 10 × 10 = 900 9 \times 10 \times 10 = 900 .

The possible number of G G is 10, so the number of lucky number if A B C = D E F \overline{ABC} = \overline{DEF} is 900 × 10 = 9000 900 \times 10 = 9000 .

For A B C = E F G \overline{ABC} = \overline{EFG} , we find the possible number of A B C \overline{ABC} which is 900 900 .

The possible number of D D is 10, so the number of lucky number if A B C = D E F \overline{ABC} = \overline{DEF} is 900 × 10 = 9000 900 \times 10 = 9000 .

There must be the same lucky number we get for A B C = D E F \overline{ABC} = \overline{DEF} and A B C = E F G \overline{ABC} = \overline{EFG} which are 1111111 , 2222222 , 3333333 , 9999999 1111111, 2222222, 3333333, \ldots 9999999 .

So the number of all lucky numbers is 9000 + 9000 9 = 17991 9000+9000-9 = \boxed{17991}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...