Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Long division

  1. Jul 1, 2009 #1
    Hi guys,
    Can you help me with this problem, please?



    where each letter is unique digit from 0 to 9

    thank you!
  2. jcsd
  3. Jul 1, 2009 #2
    That was a pretty tricky one. Not too many clues that I could divine from the puzzle itself, so I had to completely brute-force the answer using a computer program. Were there any additional hints provided with the problem?

    The other strange thing about it seems to be that the letters are pretty random. Typically, you'd have the letters A-J, or have them spell out words, like:


    Or even spell out a word if arranged in ascending or descending order. But in this case, it seems they were just random-- as though there ought to be more to the puzzle.

    Last edited: Jul 1, 2009
  4. Jul 1, 2009 #3
    hey davee123

    there was nothing more

    how did you write code for that, I want to try on my own

  5. Jul 1, 2009 #4
    I wrote a quick Perl script that went through all the possible combinations of 0-9. Effectively, it assigned a digit to each letter (my variable names were simply the letter names), and tested to see if that particular combination worked. Probably took less than 5 minutes or so to write the program, and maybe 20-30 seconds to run it.

    I'd be interested to know if anyone here is able to use non-brute force on this problem. Otherwise, it's more like a programming challenge rather than a brain teaser or math problem.

  6. Jul 2, 2009 #5
    ok, I have it!


    but how can I get not by brute force..?
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Discussions: Long division
  1. A Division Puzzle (Replies: 0)

  2. The long bow (Replies: 22)