Shopping & Style0 min ago
What Is The Smallest Nine Digit Number That Is Divisible By 11? No Digit Should Be Repeated
54 Answers
What is the smallest nine digit number that is divisible by 11? No digit should be repeated!
Answers
I think the setter probably wasn't counting 0 as a digit and wanted the digits 1-9 to be used So I suggest 123475869 may be the answer
15:03 Fri 15th May 2020
ok doing what programmers do when their maths skills run out I wrote a simple program to do it by brute force, the answer is 123475869, assuming no zero is allowed. For those that can stand the excitement here is my code, It's in an IBM mainframe language called REXX.
https:/ /ibb.co /m9mr1x G
https:/
Thanks TTT. For the 'no zero' solution I started with 123456789 then counted on until I found the first number after that divisible by 11, which was 123456795.
I then used Excel to count on in 11s to list the next few thousand multiples of 11.
I then worked my way down and deleted big blocks by eliminating those where the last 3 digits contained anything other than a combination of 789.
Then when I'd eliminated all those I looked at those starting 12345 and deleted all those with anything other than combinations of 6, 7, 8 and 9.
Then I looked at those starting with 12346 and eliminated everything by inspection as there were none ending in combinations of 5,7,8,9.
So then I did those starting with 12347 and looked for the first item ending in a combination of 5,6,8,9. That brought me to 123475869
So a combination of narrowing it down logically plus brute force and inspection.
I then used Excel to count on in 11s to list the next few thousand multiples of 11.
I then worked my way down and deleted big blocks by eliminating those where the last 3 digits contained anything other than a combination of 789.
Then when I'd eliminated all those I looked at those starting 12345 and deleted all those with anything other than combinations of 6, 7, 8 and 9.
Then I looked at those starting with 12346 and eliminated everything by inspection as there were none ending in combinations of 5,7,8,9.
So then I did those starting with 12347 and looked for the first item ending in a combination of 5,6,8,9. That brought me to 123475869
So a combination of narrowing it down logically plus brute force and inspection.
Yes, I tend to use only the more basic Excel functions now. It took me maybe 20-30 minutes to eliminate the nonqualifying numbers by inspection and then go back and double check I hadn't missed a solution, but it probably would have taken me a lot longer to remember how to write the necessary program.
Many many years ago I used to do these things by writing a programme in Basic on my Commodore 64 but I used to have to leave it running overnight
Many many years ago I used to do these things by writing a programme in Basic on my Commodore 64 but I used to have to leave it running overnight
Related Questions
Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.