## experimentX 3 years ago What's this supposed to mean We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once; for example, the 5-digit number, 15234, is 1 through 5 pandigital. The product 7254 is unusual, as the identity, 39x186 = 7254, containing multiplicand, multiplier, and product is 1 through 9 pandigital. Find the sum of all products whose multiplicand/multiplier/product identity can be written as a 1 through 9 pandigital. HINT: Some products can be obtained in more than one way so be sure to only include it once in your sum.

1. experimentX

the list seems to be 12 483 5796 18 297 5346 42 138 5796 27 198 5346 28 157 4396 39 186 7254 48 159 7632 2 1793 3586 2 4178 8356 2 4358 8716 2 3459 6918 2 3479 6958 2 4659 9318 2 4569 9138 2 4769 9538 2 4679 9358 3 1942 5826 3 2615 7845 3 1625 4875 3 2915 8745 3 2618 7854 3 2918 8754 3 1928 5784 3 1594 4782 4 1732 6928 4 1593 6372 4 1963 7852 4 1738 6952 4 1958 7832 4 2379 9516 6 1432 8592 6 1572 9432 6 1573 9438 7 1235 8645 7 1364 9548

2. experimentX

the sum of unique product seems to be 247882

3. experimentX

am i missing something?

4. cwrw238

well there are no examples where multiplier is 8 or 9

5. experimentX

I tried all ... couldn't find one.

6. experimentX

What's this supposed to mean "Find the sum of all products whose multiplicand/multiplier/product identity can be written as a 1 through 9 pandigita"

7. azka.niazi

was the list already provided?

8. sauravshakya

I think it means to add 5796+5346+5796+...

9. sauravshakya

And I dont think all the listed numbers are correct

10. experimentX

the list was not provided. I wrote a program to compute the list.

11. experimentX

i added up unique values 5796+5346+5796+... = 247882

12. experimentX
13. azka.niazi

if the list was already provided, then all you need to you to need first find those number whose multiplicand/multiplier/product identity can be written as a 1 through 9 pandigita. For example 12*483=5796 is a 1 through 9 pandigita (because you can find all digit 1 to 9 in that). But another entry in the list 2*1793=3586 is not a 1 through 9 pandigita (there is no 4). So filter out the 1 through 9 pandigita first. And then sum them up.

14. azka.niazi

oh i see. but the list isn't correct. there are entries which can't be called a 1 through 9 pandigita - i think!

15. experimentX

*pandigital looks like it i didn't check it manually.

16. experimentX

looks like in need to edit my program.

17. azka.niazi

oh right! "pandigital"...i copied the word! =)

18. azka.niazi

yes, you do!

19. experimentX

this looks final 12 483 5796 18 297 5346 42 138 5796 27 198 5346 28 157 4396 39 186 7254 48 159 7632 4 1963 7852 4 1738 6952 -------------------------- sum = 45228

20. experimentX

Bingo!! help each other's with medals!!

21. azka.niazi

lol! finally!! yeah, that seems right!

22. sauravshakya

@experimentX u use which programming language to write progrmas

23. experimentX

nowdays i'm using matlab + mathematica ... I'm planning to learn python. besides that i know bunch of other languges.

24. experimentX

better learn python ... it's serves multipurpose.

25. sauravshakya

Oh ya......... I have seen my friends writting program using python.... That looks good.

26. experimentX

once you learn one language ... rest of language have similar structure.

27. sauravshakya

Well i know as u know Q-basic that we learn at school...... and can also use Visual Basic....... But python looks very different.

28. experimentX

once you get your hands on it ... probably programming python is lot faster than those in Basic or VB

29. sauravshakya

Well thanx I will try it.