# sum of the 4536 numbers from 1000 t0 10000 their digits distinct

• May 10th 2010, 05:03 PM
dch
sum of the 4536 numbers from 1000 t0 10000 their digits distinct
Difficult problem:

Find the sum of 4536 numbers from 1000 to 10000 which all have their digits distinct,

Thanks
-D
• May 10th 2010, 05:50 PM
undefined
Quote:

Originally Posted by dch
Difficult problem:

Find the sum of 4536 numbers from 1000 to 10000 which all have their digits distinct,

Thanks
-D

Odd, I just answered this question. See this thread, post #5. But try to work out some stuff for yourself, since I have a complete solution up there.
• May 11th 2010, 12:01 PM
dch
difficult problem
I don't think I entirely understand the solution

Is there another way??

Thanks
• May 11th 2010, 12:22 PM
undefined
Quote:

Originally Posted by dch
I don't think I entirely understand the solution

Is there another way??

Thanks

Are you allowed to write a computer program? For a brute force algorithm, think about how you would test whether a given number has all its digits distinct. Hint: Use a boolean array.