Number of pairs $(a,b)$ such that $a+b<n$ and such that $gcd(a,b,n)=1$

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
1












Let $n$ be a positive integer.
What is the number of pairs $(a,b)$ of positive integers such that $a+b<n$ and such that $gcd(a,b,n)=1$?



I know that the number of positive integer $a$ such that $gcd(a,n)=1$ is just $varphi(n)$. Maybe we can express the answer for my question above in terms of $varphi(n)$ and other arithmetic functions.







share|cite|improve this question















  • 1




    Where does this problem arise?
    – saulspatz
    Jul 17 at 17:19










  • In studying to count the number of positive integer solutions of some algebraic equations. Might be not a very fruitful direction of research, but for some cases, it gives a nice alternative proof of some fun facts about arithmetic functions.
    – raja.damanik
    Jul 17 at 23:25














up vote
2
down vote

favorite
1












Let $n$ be a positive integer.
What is the number of pairs $(a,b)$ of positive integers such that $a+b<n$ and such that $gcd(a,b,n)=1$?



I know that the number of positive integer $a$ such that $gcd(a,n)=1$ is just $varphi(n)$. Maybe we can express the answer for my question above in terms of $varphi(n)$ and other arithmetic functions.







share|cite|improve this question















  • 1




    Where does this problem arise?
    – saulspatz
    Jul 17 at 17:19










  • In studying to count the number of positive integer solutions of some algebraic equations. Might be not a very fruitful direction of research, but for some cases, it gives a nice alternative proof of some fun facts about arithmetic functions.
    – raja.damanik
    Jul 17 at 23:25












up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





Let $n$ be a positive integer.
What is the number of pairs $(a,b)$ of positive integers such that $a+b<n$ and such that $gcd(a,b,n)=1$?



I know that the number of positive integer $a$ such that $gcd(a,n)=1$ is just $varphi(n)$. Maybe we can express the answer for my question above in terms of $varphi(n)$ and other arithmetic functions.







share|cite|improve this question











Let $n$ be a positive integer.
What is the number of pairs $(a,b)$ of positive integers such that $a+b<n$ and such that $gcd(a,b,n)=1$?



I know that the number of positive integer $a$ such that $gcd(a,n)=1$ is just $varphi(n)$. Maybe we can express the answer for my question above in terms of $varphi(n)$ and other arithmetic functions.









share|cite|improve this question










share|cite|improve this question




share|cite|improve this question









asked Jul 17 at 17:07









raja.damanik

518




518







  • 1




    Where does this problem arise?
    – saulspatz
    Jul 17 at 17:19










  • In studying to count the number of positive integer solutions of some algebraic equations. Might be not a very fruitful direction of research, but for some cases, it gives a nice alternative proof of some fun facts about arithmetic functions.
    – raja.damanik
    Jul 17 at 23:25












  • 1




    Where does this problem arise?
    – saulspatz
    Jul 17 at 17:19










  • In studying to count the number of positive integer solutions of some algebraic equations. Might be not a very fruitful direction of research, but for some cases, it gives a nice alternative proof of some fun facts about arithmetic functions.
    – raja.damanik
    Jul 17 at 23:25







1




1




Where does this problem arise?
– saulspatz
Jul 17 at 17:19




Where does this problem arise?
– saulspatz
Jul 17 at 17:19












In studying to count the number of positive integer solutions of some algebraic equations. Might be not a very fruitful direction of research, but for some cases, it gives a nice alternative proof of some fun facts about arithmetic functions.
– raja.damanik
Jul 17 at 23:25




In studying to count the number of positive integer solutions of some algebraic equations. Might be not a very fruitful direction of research, but for some cases, it gives a nice alternative proof of some fun facts about arithmetic functions.
– raja.damanik
Jul 17 at 23:25










1 Answer
1






active

oldest

votes

















up vote
1
down vote













This is A000741 the number of compositions of $n$ into $3$ ordered relatively prime parts. Write $c=n-a-b,$ so that $(a,b,c)$ is a composition of $n$. Some of the scripts given on OEIS seem to relate to the divisor function, but I don't know any of the languages, so I can't be sure.






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: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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%2f2854721%2fnumber-of-pairs-a-b-such-that-abn-and-such-that-gcda-b-n-1%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    This is A000741 the number of compositions of $n$ into $3$ ordered relatively prime parts. Write $c=n-a-b,$ so that $(a,b,c)$ is a composition of $n$. Some of the scripts given on OEIS seem to relate to the divisor function, but I don't know any of the languages, so I can't be sure.






    share|cite|improve this answer

























      up vote
      1
      down vote













      This is A000741 the number of compositions of $n$ into $3$ ordered relatively prime parts. Write $c=n-a-b,$ so that $(a,b,c)$ is a composition of $n$. Some of the scripts given on OEIS seem to relate to the divisor function, but I don't know any of the languages, so I can't be sure.






      share|cite|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        This is A000741 the number of compositions of $n$ into $3$ ordered relatively prime parts. Write $c=n-a-b,$ so that $(a,b,c)$ is a composition of $n$. Some of the scripts given on OEIS seem to relate to the divisor function, but I don't know any of the languages, so I can't be sure.






        share|cite|improve this answer













        This is A000741 the number of compositions of $n$ into $3$ ordered relatively prime parts. Write $c=n-a-b,$ so that $(a,b,c)$ is a composition of $n$. Some of the scripts given on OEIS seem to relate to the divisor function, but I don't know any of the languages, so I can't be sure.







        share|cite|improve this answer













        share|cite|improve this answer



        share|cite|improve this answer











        answered Jul 18 at 1:15









        saulspatz

        10.7k21323




        10.7k21323






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2854721%2fnumber-of-pairs-a-b-such-that-abn-and-such-that-gcda-b-n-1%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What is the equation of a 3D cone with generalised tilt?

            Color the edges and diagonals of a regular polygon

            Relationship between determinant of matrix and determinant of adjoint?