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

Seven digit base eight positive integer puzzle

  1. Mar 16, 2009 #1
    N is a seven digit base-8 positive integer having the form ABCDEFG that uses each of the nonzero base-8 digits 1 to 7 exactly once, and satisfies these conditions:

    (i) ABCDEFG is divisible by 7.
    (ii) ABCDEF is divisible by 6.
    (iii) ABCDE divisible by 5.
    (iv) ABCD is divisible by 4.
    (v) ABC is divisible by 3.
    (vi) AB is divisible by 2.

    Determine all possible value(s) that N can take.
     
  2. jcsd
  3. Mar 16, 2009 #2
    I'm sure I could write a mathematica script to solve this, but does anyone have any good tricks to solve it by hand?
     
  4. Mar 16, 2009 #3
    I effectively solved by hand (I used Excel to calculate the octal values of stuff), it wasn't too bad. There's only 5040 permutations of 1-7, and the possibilities seemed to cull themselves out pretty quickly. I was able to knock it down to 48 possibilities just using some logic-- from then on it was basically slogging through-- I effectively slogged through 36, but Excel helped.

    3254167
    5234761
    5674321

    DaveE
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Seven digit base eight positive integer puzzle
Loading...