All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Divisible by 11,111 (Posted on 2008-10-02) Difficulty: 2 of 5
How many positive 10-digit integers of the form ABCDEFGHIJ, with non leading zeroes and each letter representing a different base 10 digit from 0 to 9, are divisible by 11,111 ?

Note : Try to solve this problem analytically, although computer program/ spreadsheet solutions are welcome.

  Submitted by K Sengupta    
Rating: 3.2500 (4 votes)
Solution: (Hide)
The sum of the digits A to J = 0+1+2+.....+ 9 = 45, so that: the number represented by ABCDEFGHIJ is divisible by 9. Since 9 and 11,111 are relatively prime, it follows form the given conditions that ABCDEFGHIJ is divisible by 99,999.

Thus, ABCDEFGHIJ (mod 99,999) = 0
Or, (ABCDE+ FGHIJ) (mod 99,999) = 0 ......(i)

Since, each of the letters denote a distinct digit, it follows that each of ABCDE and FGHIJ is less than 99,999, and accordingly ABCDE+ FGHIJ < 199,998, and so that in terms of (i), we must have:

ABCDE + FGHIJ = 99,999 ..... (ii)

Now, each of the digits cannot exceed 9, so that there is no carryover in the lhs of (ii), and accordingly:

F = 9 - A
G = 9 - B
H = 9 – C
I = 9 - D
J = 9 - E

Since A is nonzero, there are 9 ways to choose A, whereby F will be known. This leaves 10-2 = 8 ways to choose B, whereby G will be known. C can thus be chosen in 6 ways, whereby H will be known. This leaves 4 ways to choose D, whereby I will be known. Finally, there will be 2 choices for E, whereby J will be known.

Consequently, the required number of all the positive integers ABCDEFGHIJ that satisfy the given conditions = 9*8*6*4*2 = 3456.

Comments: ( You must be logged in to post comments.)
  Subject Author Date
My Python Solutionjcbar2019-07-20 15:53:26
winnoweded bottemiller2008-10-02 17:59:41
Solutionperl(computer) solutionPete2008-10-02 13:25:08
re: Trivial SolutionCharlie2008-10-02 12:48:37
Trivial Solutioned bottemiller2008-10-02 12:41:09
Solutioncomputer solution (spoiler)Charlie2008-10-02 12:40:46
SolutionanswerDej Mar2008-10-02 11:30:48
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (10)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information