Results 1 to 10 of 10

Thread: puzzle

  1. #1
    Right Off the Assembly Line
    Join Date
    Jul 2005
    Location
    coimbatore
    Posts
    30

    Default puzzle

    hi
    pls any one help me find the answer in the following puzzle:

    There are 10 steps. A person is starting from the bottom climbing to the top. A person can climb, at a time, one, two or three steps. In how many ways can he climb the steps and reach the top?

    bye.,
    saravana.

  2. #2
    String Phreak mediator's Avatar
    Join Date
    Mar 2005
    Location
    In ur Evil Mind!
    Posts
    2,458

    Default Re: puzzle

    Well the answer is very simple..... U see there aare ten steps and three given step incremenets => single, double , triple. So the equation formed is :

    3x+2y+1z = 10

    Just count the number of sets x,y,z form. Thats the solution. Like x=3,y=0,x=1 is one set/way. So count the number of these ways !!!

  3. #3
    Human Spambot
    Join Date
    Nov 2004
    Location
    Madurai
    Posts
    2,382

    Default Re: puzzle

    There is a twist to the above solution presented by mediator... It will count steps of (2, 3, 2, 3) and (3,2,3,2) and (2,2,3,3), etc to be same since x=0, y=2,z=2 for all cases... But, in this situation, they should be counted as different... So, we are looking at permutations rather than combinations, but it is not as direct as that because of the restraint in the sum...

    However, what this post is doing in a QnA thread is more puzzling

    Arun

  4. #4
    Broken In
    Join Date
    Dec 2005
    Posts
    151

    Default Re: puzzle

    taking 1 step --> 1 way ;
    taking 2 steps --> 1 way;
    combination of 2&3 --> 4 ways;
    combination of 1&3 --> 4 ways;
    combination of 1,2 &3-->5!/5*2! + 3!

    ways

  5. #5
    Human Spambot
    Join Date
    Nov 2004
    Location
    Madurai
    Posts
    2,382

    Default Re: puzzle

    Quote Originally Posted by hermit
    taking 1 step --> 1 way ;
    taking 2 steps --> 1 way;
    combination of 2&3 --> 4 ways;
    combination of 1&3 --> 4 ways;
    combination of 1,2 &3-->5!/5*2! + 3!

    ways
    1&2 combination has been left out above, and some mistakes are there...

    Combination of 2 & 3: Here, no. of 3s has to be 2 (cannot be 0 as it will be all 2s which has been accounted, cannot be 1 or 3 as there will be odd number in total, anything above 3 will lead to total more than 10.). So, you have 2 2s and 2 3s in this combination set... (2,2,3,3), (2,3,2,3), (2,3,3,2), (3,2,2,3), (3,2,3,2), (3,3,2,2,) implies 6 combinations...

    Combinations of 1 & 3: Here, things get a bit complicated...If we have x 1s and y 3s, x+y must be even, but x and y can both be odd... x and y must be greater than 0... y=1 => x=7, y=2 => x=4, and y=3 => x=1.
    x=7, y=1 => 8 combinations
    x=1, y=3 => 4 combinations
    x=4, y=2 => (111133) (111313) (111331) (113113) (113131) (113311) (131113) (131131) (131311) (133111) (311113) (311131) (311311) (313111) (331111) 15 combinations...

    Combinations of 1 & 2: Here again, the combinations will increase... no. of 1s must be 2, 4, 6 or 8. I will get back to this later...
    2 1s, 4 2s
    4 1s, 3 2s
    6 1s, 2 2s
    8 1s, 1 2(s)

    And then we have combinations of 1,2 and 3, which I will look into later...

    Arun

  6. #6
    String Phreak mediator's Avatar
    Join Date
    Mar 2005
    Location
    In ur Evil Mind!
    Posts
    2,458

    Default Re: puzzle

    Hey that what i meant! taking x=1, count all possible positive values of y and z, then x=2 => y,z ?.....then x=3 =>y,z ? so and so....means all the sets formed is the answer!

  7. #7
    Apprentice martian's Avatar
    Join Date
    Dec 2005
    Location
    Mars!
    Posts
    75

    Talking Re: puzzle

    Mm.. Maths! Maths!

    Wait, I've got a Puzzle too!

    Lets suppose a Farmer owns 50 Cows... and has 9 rooms to lock them up! One day it starts to rain. He can lock any number of Cows in each room, but can do so only in Odd numbers... So how many Cows in each rooms at last?
    Oh my! Such a nice Planet...
    But... what am I doing here??

  8. #8
    String Phreak mediator's Avatar
    Join Date
    Mar 2005
    Location
    In ur Evil Mind!
    Posts
    2,458

    Default Re: puzzle

    Ur problem is same as above! It shud be how many ways the cows can be entered in the rooms with the given condition.
    no. of cows in each room will vary in each step!

  9. #9
    Apprentice martian's Avatar
    Join Date
    Dec 2005
    Location
    Mars!
    Posts
    75

    Talking Re: puzzle

    Quote Originally Posted by mediator
    Ur problem is same as above! It shud be how many ways the cows can be entered in the rooms with the given condition.
    no. of cows in each room will vary in each step!
    So how many Cows in each room Mediator?
    Oh my! Such a nice Planet...
    But... what am I doing here??

  10. #10
    String Phreak mediator's Avatar
    Join Date
    Mar 2005
    Location
    In ur Evil Mind!
    Posts
    2,458

    Default Re: puzzle

    @Martian.....Bro .....Im not a supergenius! Have mercy! I gave up studying permutation and combinations a long time back.
    But in ur case the eqaution will be similar as previous problem!
    I dunno how to solve that equation now! If i cud...then i wud have posted the exactanswer too!
    Last edited by mediator; 10-07-2006 at 09:32 PM.

Similar Threads

  1. Another Puzzle
    By vaibhavtek in forum Chit-Chat
    Replies: 2
    Last Post: 09-02-2008, 10:28 PM
  2. Puzzle
    By rahul.ims in forum Chit-Chat
    Replies: 23
    Last Post: 09-02-2008, 04:57 PM
  3. one more puzzle
    By rahul.ims in forum Chit-Chat
    Replies: 3
    Last Post: 07-02-2008, 04:45 PM
  4. Solve the given puzzle 2
    By adi007 in forum Chit-Chat
    Replies: 63
    Last Post: 24-10-2007, 10:35 PM
  5. Triangle Puzzle....
    By sivarap in forum Chit-Chat
    Replies: 9
    Last Post: 23-10-2007, 03:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Close