How many ways to reach point?











up vote
0
down vote

favorite












You're sitting at coordinates (0,0) and have 3 options:




  1. Go up diagonally eg: (0,0) -> (1,1)

  2. Go straight 1 step eg: (0,0) -> (1,0)

  3. Go down diagonally eg: (2,2) -> (3,1)


You want to reach (p,0) and you're not allowed to go under 0 (Eg, you can only walk on >= 0 coordinates) and you can only go up to a point h, in height.



How many ways can you reach the point (p, 0) from (0,0) given to constraints mentioned above ?










share|cite|improve this question




















  • 2




    Infinitely many, since you can start at $(0,0)$ and go up to $(1,1)$ and back down to $(0,0)$ as often as you like.
    – lulu
    Nov 14 at 15:31










  • Not sure the rules are clear, by the way. Does move $2$ also allow $(0,0)mapsto (0,1)$ or can you only use $2$ to move up? And can you go from $(1,0)mapsto (0,0)$ or is move $2$ only one way? Also, did you mean to have some rule which excludes or restricts loops of the form I invoked?
    – lulu
    Nov 14 at 15:34












  • "You want to reach (p,0)" - What is p?
    – NoChance
    Nov 14 at 15:35










  • I didn't say you can walk backwards. Also, p is a random point, consider p being 100 if it makes it easier for you to think about it.
    – Erik Cristian Seulean
    Nov 14 at 15:37








  • 1




    So, every possible move increases the $x$ coordinate, yes? So all paths must have length $p$, yes?
    – lulu
    Nov 14 at 15:45

















up vote
0
down vote

favorite












You're sitting at coordinates (0,0) and have 3 options:




  1. Go up diagonally eg: (0,0) -> (1,1)

  2. Go straight 1 step eg: (0,0) -> (1,0)

  3. Go down diagonally eg: (2,2) -> (3,1)


You want to reach (p,0) and you're not allowed to go under 0 (Eg, you can only walk on >= 0 coordinates) and you can only go up to a point h, in height.



How many ways can you reach the point (p, 0) from (0,0) given to constraints mentioned above ?










share|cite|improve this question




















  • 2




    Infinitely many, since you can start at $(0,0)$ and go up to $(1,1)$ and back down to $(0,0)$ as often as you like.
    – lulu
    Nov 14 at 15:31










  • Not sure the rules are clear, by the way. Does move $2$ also allow $(0,0)mapsto (0,1)$ or can you only use $2$ to move up? And can you go from $(1,0)mapsto (0,0)$ or is move $2$ only one way? Also, did you mean to have some rule which excludes or restricts loops of the form I invoked?
    – lulu
    Nov 14 at 15:34












  • "You want to reach (p,0)" - What is p?
    – NoChance
    Nov 14 at 15:35










  • I didn't say you can walk backwards. Also, p is a random point, consider p being 100 if it makes it easier for you to think about it.
    – Erik Cristian Seulean
    Nov 14 at 15:37








  • 1




    So, every possible move increases the $x$ coordinate, yes? So all paths must have length $p$, yes?
    – lulu
    Nov 14 at 15:45















up vote
0
down vote

favorite









up vote
0
down vote

favorite











You're sitting at coordinates (0,0) and have 3 options:




  1. Go up diagonally eg: (0,0) -> (1,1)

  2. Go straight 1 step eg: (0,0) -> (1,0)

  3. Go down diagonally eg: (2,2) -> (3,1)


You want to reach (p,0) and you're not allowed to go under 0 (Eg, you can only walk on >= 0 coordinates) and you can only go up to a point h, in height.



How many ways can you reach the point (p, 0) from (0,0) given to constraints mentioned above ?










share|cite|improve this question















You're sitting at coordinates (0,0) and have 3 options:




  1. Go up diagonally eg: (0,0) -> (1,1)

  2. Go straight 1 step eg: (0,0) -> (1,0)

  3. Go down diagonally eg: (2,2) -> (3,1)


You want to reach (p,0) and you're not allowed to go under 0 (Eg, you can only walk on >= 0 coordinates) and you can only go up to a point h, in height.



How many ways can you reach the point (p, 0) from (0,0) given to constraints mentioned above ?







combinatorics






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 14 at 15:43

























asked Nov 14 at 15:29









Erik Cristian Seulean

385




385








  • 2




    Infinitely many, since you can start at $(0,0)$ and go up to $(1,1)$ and back down to $(0,0)$ as often as you like.
    – lulu
    Nov 14 at 15:31










  • Not sure the rules are clear, by the way. Does move $2$ also allow $(0,0)mapsto (0,1)$ or can you only use $2$ to move up? And can you go from $(1,0)mapsto (0,0)$ or is move $2$ only one way? Also, did you mean to have some rule which excludes or restricts loops of the form I invoked?
    – lulu
    Nov 14 at 15:34












  • "You want to reach (p,0)" - What is p?
    – NoChance
    Nov 14 at 15:35










  • I didn't say you can walk backwards. Also, p is a random point, consider p being 100 if it makes it easier for you to think about it.
    – Erik Cristian Seulean
    Nov 14 at 15:37








  • 1




    So, every possible move increases the $x$ coordinate, yes? So all paths must have length $p$, yes?
    – lulu
    Nov 14 at 15:45
















  • 2




    Infinitely many, since you can start at $(0,0)$ and go up to $(1,1)$ and back down to $(0,0)$ as often as you like.
    – lulu
    Nov 14 at 15:31










  • Not sure the rules are clear, by the way. Does move $2$ also allow $(0,0)mapsto (0,1)$ or can you only use $2$ to move up? And can you go from $(1,0)mapsto (0,0)$ or is move $2$ only one way? Also, did you mean to have some rule which excludes or restricts loops of the form I invoked?
    – lulu
    Nov 14 at 15:34












  • "You want to reach (p,0)" - What is p?
    – NoChance
    Nov 14 at 15:35










  • I didn't say you can walk backwards. Also, p is a random point, consider p being 100 if it makes it easier for you to think about it.
    – Erik Cristian Seulean
    Nov 14 at 15:37








  • 1




    So, every possible move increases the $x$ coordinate, yes? So all paths must have length $p$, yes?
    – lulu
    Nov 14 at 15:45










2




2




Infinitely many, since you can start at $(0,0)$ and go up to $(1,1)$ and back down to $(0,0)$ as often as you like.
– lulu
Nov 14 at 15:31




Infinitely many, since you can start at $(0,0)$ and go up to $(1,1)$ and back down to $(0,0)$ as often as you like.
– lulu
Nov 14 at 15:31












Not sure the rules are clear, by the way. Does move $2$ also allow $(0,0)mapsto (0,1)$ or can you only use $2$ to move up? And can you go from $(1,0)mapsto (0,0)$ or is move $2$ only one way? Also, did you mean to have some rule which excludes or restricts loops of the form I invoked?
– lulu
Nov 14 at 15:34






Not sure the rules are clear, by the way. Does move $2$ also allow $(0,0)mapsto (0,1)$ or can you only use $2$ to move up? And can you go from $(1,0)mapsto (0,0)$ or is move $2$ only one way? Also, did you mean to have some rule which excludes or restricts loops of the form I invoked?
– lulu
Nov 14 at 15:34














"You want to reach (p,0)" - What is p?
– NoChance
Nov 14 at 15:35




"You want to reach (p,0)" - What is p?
– NoChance
Nov 14 at 15:35












I didn't say you can walk backwards. Also, p is a random point, consider p being 100 if it makes it easier for you to think about it.
– Erik Cristian Seulean
Nov 14 at 15:37






I didn't say you can walk backwards. Also, p is a random point, consider p being 100 if it makes it easier for you to think about it.
– Erik Cristian Seulean
Nov 14 at 15:37






1




1




So, every possible move increases the $x$ coordinate, yes? So all paths must have length $p$, yes?
– lulu
Nov 14 at 15:45






So, every possible move increases the $x$ coordinate, yes? So all paths must have length $p$, yes?
– lulu
Nov 14 at 15:45












1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










These are the Motzkin numbers, OEIS A001006. Mathworld gives various expressions which might be considered closed forms.






share|cite|improve this answer





















    Your Answer





    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("mathjaxEditing", function () {
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    });
    });
    }, "mathjax-editing");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "69"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2998397%2fhow-many-ways-to-reach-point%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote



    accepted










    These are the Motzkin numbers, OEIS A001006. Mathworld gives various expressions which might be considered closed forms.






    share|cite|improve this answer

























      up vote
      0
      down vote



      accepted










      These are the Motzkin numbers, OEIS A001006. Mathworld gives various expressions which might be considered closed forms.






      share|cite|improve this answer























        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        These are the Motzkin numbers, OEIS A001006. Mathworld gives various expressions which might be considered closed forms.






        share|cite|improve this answer












        These are the Motzkin numbers, OEIS A001006. Mathworld gives various expressions which might be considered closed forms.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Nov 15 at 12:26









        Peter Taylor

        8,27912240




        8,27912240






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2998397%2fhow-many-ways-to-reach-point%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Plaza Victoria

            Puebla de Zaragoza

            Musa