Tangler Discussion Forums

Discuss

Topics

Click a Topicto start discussing

    Mr Geometry is at the origin in three-dimensional space. How many ways can Mr Geometry take a series of 12 unit-length steps, each step parallel to one of the coordinate axes, from the origin to (3,4,5) without passing through the point (2,1,2)?

    2009-01-07 17:38:31.0

    hehehe Mr Geometry

    dek likes!

    2009-01-07 17:41:31.0

    ooh, a combinitorics puzzie.

    lesse.  I think it's (12 : 3 4 5) - (5 : 2 2 1)

    2009-01-07 17:44:27.0

    no, wait, it's (12 : 3 4 5) - (5 : 2  1 2)(7 : 1 3 3)

    2009-01-07 17:45:45.0

    wait, you're actually deciphering my notation? It was supposed to be secret, so I could be smug and reveal that I knew the answer all along!  Yell

    2009-01-07 17:47:03.0

    Please finish with the actual number...:)

    2009-01-07 17:47:20.0

    For those who don't know the secret notation..:)

    2009-01-07 17:47:34.0

    ... gotta get my calculator...

    2009-01-07 17:48:22.0

    And give an explanation so everyone knows you know why, and newbies can understand the reasoning... if that's okay.

    2009-01-07 17:48:40.0

    I step away for 5 mins and when I get back, nothing makes sense....

    You GUYS!!>:-O

    2009-01-07 17:49:47.0

    hm... that doesn't make sense.  calculator says it's 27714.2

    that doesn't make sense....

    2009-01-07 17:53:29.0

    Try those buttons again...

    2009-01-07 17:53:52.0

    here we go: 23520. (I dropped a factorial)

    2009-01-07 17:53:58.0

    Yes. And the explanation?

    2009-01-07 17:54:14.0

    ... or would you prefer if I gave it?

    2009-01-07 17:55:19.0

    P.S. +1 point for Duke Jake.

    2009-01-07 17:55:33.0

    I'll do it. maybe starting from the Binomial Theorem.

    2009-01-07 17:55:50.0

    No no!

    Withhold the point till he gives the explanation!!

    :P

    2009-01-07 17:56:13.0

    He got the point - as soon as I saw his notation I knew he knew why. But for the record, it would be better if there was a plain English explanation here.

    2009-01-07 17:57:44.0

    shhhh..... play along will ya?

    hehehe
     

    2009-01-07 17:58:18.0

    Hey DJ, don't start with the Binominal Theorem, you joker!:) Just about why there can't be any back-tracking, how you work out the number of possible paths from one point to another, ... why the three factorials in the denominator.

    2009-01-07 18:00:34.0

    ...and the reasoning behind the second term being a product.

    2009-01-07 18:02:45.0

    2009-01-07 18:03:00.0

    It provides a good background.  some people might not know this.

    Anyway.  The Binomial Coefficent: The binomial coefficient (n; k) is the number of ways of organizing n items in a row when k of them are all identical.  Like having 5 white socks in a drawer with 20 socks in it (the rest are black).

    It turns out that \binom ni=

    Since there are 20! ways to take the socks in order.  But once you have them in order, you can take the white socks in any of 5! ways and the black socks in any of 15! ways

    [edit: added link]

    2009-01-07 18:03:24.0

    For pacing's sake, I want to have a few posts between this post and the next.  Math is really annoying when it's lumped too close together.

    2009-01-07 18:05:14.0

    (also gives me time to compose next message)

    2009-01-07 18:05:39.0

    ..

     

     

     

    ...

     

    ..

    2009-01-07 18:15:31.0


    So (n; k) is the number of ways to select two distinct types of things.

    What if we had red socks, too?

    Then we have the Multinomial Coeffiecent: the multinomial coeffiecent is the number of ways of choosing from a group with ANY NUMBER of different things.

    the multinomial coefficent looks very familar:

    Imagine if we had 5 white socks, 5 red socks, and 10 black socks (for a total of 20 socks).  There are 20! ways to take the socks in order.  But once you have them in order, you can take the white socks in any of 5! ways, the red socks in any of 5! ways, and the black socks in any of 10! ways

    the multinomial coeffiecent is (20 : 5 5 10) = 20! / (5! * 5! * 10!)

    2009-01-07 18:20:10.0

    ... and now you see why I used the notation that I did.

    2009-01-07 18:21:23.0

    ...

     

     

    ...

     

    ...

    2009-01-07 18:21:55.0

    And we're back to the original problem.

    You are taking 12 steps in one of three directions, 3 x-axes, 4 y-axes, and 5 z-axes.  These steps are all identical, so there are (12 : 3 4 5) ways of selecting them.

     

    To get to (2,1,2), you need to make 5 steps in one of three directions, 2 x-axes, 1 y-axes, and 2 z-axes.  These steps are all identical, so there are (5 : 2 1 2) ways to get to (2,1,2).

     

    From there, you still have to hit (3,4,5), which is (3,4,5)-(2,1,2) = (1,3,3) from here for a total of 7 steps in one of three directions, 1 x-axes, 3 y-axes, and 3 z-axes.  These steps are all identical, so there are (7 : 1 3 3) ways to get from (2,1,2) to (3,4,5).

    If we multiply those together, we get the number of paths that pass through (2,1,2) on their way to (3,4,5), for a total of (5 : 2  1 2)*(7 : 1 3 3) paths

     

    So (12 : 3 4 5) paths of which  (5 : 2  1 2)*(7 : 1 3 3) are invalid, gives us (12 : 3 4 5) - (5 : 2  1 2)*(7 : 1 3 3) valid paths.

    2009-01-07 18:31:11.0

    Thanks DJ!

    *suffers from flashbacks of uni maths class*

    2009-01-07 18:37:09.0

    yep, that's where I got all of this.

    oh, and some calculator results: (12 : 3 4 5) = 27720

    (5 : 2  1 2)(7 : 1 3 3)  = 4200

    27720 - 4200 = 23520

    2009-01-07 18:37:34.0

    wow.  that took an hour? daaaamnnn!

    2009-01-07 18:41:13.0

    That's great! All I would add is that in general, getting to a point could involve steps in either direction along each of the three axes, that is, backtracking is in general possible, where Mr Geometry sets out in the x direction, say, then takes a step in the y direction, then goes BACK say two steps in the x direction, etc. This makes it far more complicated. He could even overshoot the destination along any or all of the axes, then come back to it.

    Thankfully, in this problem, 12 steps is the minimum required to get to (3,4,5) from the origin walking parallel to the axes, and so there can't be any backtracking. All steps must be in the +ve direction along each of the three axes. Only the axis-order of the steps can vary.

    2009-01-07 18:50:38.0

    yes, and I appreciate neither having to solve that, nor explain the solution.:P

    2009-01-07 18:58:14.0

    i'm glad i missed this one.....i would never have got that.

    2009-01-07 21:42:58.0

    Yeah... I'd probably have pulled up a paint window, sketched out a 3d grid and started counting...

    2009-01-08 05:28:36.0
To send a message, Join Now (it's quick and free) or Sign In
Edit Topic
Delete Topic
Are you sure you want to delete the topic