Count number of triangles given a set of points

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











up vote
1
down vote

favorite












Gievn, $$A = le 2$$
Find

(a) Number of straight lines which pass through at least 2 points in $A$;


(b) Number of triangles whose vertices are points in $A$;






(a) I have exhaustively counted it's answer and it turns out to be 40. But it there any general approach to solve it?


(b) Same exhaustive approach: First choosing one point on a line then choosing other two points from remaining points. Second choosing 2 points on a line and one point that is not on the line. Sum these two cases for every line.
Is there any general approach for this as well?





share|cite|improve this question

























    up vote
    1
    down vote

    favorite












    Gievn, $$A = le 2$$
    Find

    (a) Number of straight lines which pass through at least 2 points in $A$;


    (b) Number of triangles whose vertices are points in $A$;






    (a) I have exhaustively counted it's answer and it turns out to be 40. But it there any general approach to solve it?


    (b) Same exhaustive approach: First choosing one point on a line then choosing other two points from remaining points. Second choosing 2 points on a line and one point that is not on the line. Sum these two cases for every line.
    Is there any general approach for this as well?





    share|cite|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Gievn, $$A = le 2$$
      Find

      (a) Number of straight lines which pass through at least 2 points in $A$;


      (b) Number of triangles whose vertices are points in $A$;






      (a) I have exhaustively counted it's answer and it turns out to be 40. But it there any general approach to solve it?


      (b) Same exhaustive approach: First choosing one point on a line then choosing other two points from remaining points. Second choosing 2 points on a line and one point that is not on the line. Sum these two cases for every line.
      Is there any general approach for this as well?





      share|cite|improve this question













      Gievn, $$A = le 2$$
      Find

      (a) Number of straight lines which pass through at least 2 points in $A$;


      (b) Number of triangles whose vertices are points in $A$;






      (a) I have exhaustively counted it's answer and it turns out to be 40. But it there any general approach to solve it?


      (b) Same exhaustive approach: First choosing one point on a line then choosing other two points from remaining points. Second choosing 2 points on a line and one point that is not on the line. Sum these two cases for every line.
      Is there any general approach for this as well?







      share|cite|improve this question












      share|cite|improve this question




      share|cite|improve this question








      edited Jul 14 at 20:22







      user401938
















      asked Jul 14 at 16:37









      naman jain

      185




      185




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          Drawing a figure we see $10$ lines with $3$ points and $2$ lines with $5$ points. All other lines in the plane contain at most $2$ of the given $13$ points.



          (a) "Formally" there are $13choose2=78$ lines connecting two points in $A$. Lines containing $3$ points of $A$ are thereby counted $3choose2=3$ times, and lines containing $5$ points of $A$ are counted $5choose2=10$ times. It follows that the number of different lines is given by
          $$N_rm lines=78-10(3-1)-2(10-1)=40 .$$
          (b) There are $13choose3=286$ triples of points from $A$. Triples lying on a line do not give rise to a nondegenerate triangle. It follows that the number of nondegenerate triangles in this figure is given by
          $$N_rm triangles=286-103choose3-25choose3=256 .$$






          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%2f2851754%2fcount-number-of-triangles-given-a-set-of-points%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
            2
            down vote













            Drawing a figure we see $10$ lines with $3$ points and $2$ lines with $5$ points. All other lines in the plane contain at most $2$ of the given $13$ points.



            (a) "Formally" there are $13choose2=78$ lines connecting two points in $A$. Lines containing $3$ points of $A$ are thereby counted $3choose2=3$ times, and lines containing $5$ points of $A$ are counted $5choose2=10$ times. It follows that the number of different lines is given by
            $$N_rm lines=78-10(3-1)-2(10-1)=40 .$$
            (b) There are $13choose3=286$ triples of points from $A$. Triples lying on a line do not give rise to a nondegenerate triangle. It follows that the number of nondegenerate triangles in this figure is given by
            $$N_rm triangles=286-103choose3-25choose3=256 .$$






            share|cite|improve this answer

























              up vote
              2
              down vote













              Drawing a figure we see $10$ lines with $3$ points and $2$ lines with $5$ points. All other lines in the plane contain at most $2$ of the given $13$ points.



              (a) "Formally" there are $13choose2=78$ lines connecting two points in $A$. Lines containing $3$ points of $A$ are thereby counted $3choose2=3$ times, and lines containing $5$ points of $A$ are counted $5choose2=10$ times. It follows that the number of different lines is given by
              $$N_rm lines=78-10(3-1)-2(10-1)=40 .$$
              (b) There are $13choose3=286$ triples of points from $A$. Triples lying on a line do not give rise to a nondegenerate triangle. It follows that the number of nondegenerate triangles in this figure is given by
              $$N_rm triangles=286-103choose3-25choose3=256 .$$






              share|cite|improve this answer























                up vote
                2
                down vote










                up vote
                2
                down vote









                Drawing a figure we see $10$ lines with $3$ points and $2$ lines with $5$ points. All other lines in the plane contain at most $2$ of the given $13$ points.



                (a) "Formally" there are $13choose2=78$ lines connecting two points in $A$. Lines containing $3$ points of $A$ are thereby counted $3choose2=3$ times, and lines containing $5$ points of $A$ are counted $5choose2=10$ times. It follows that the number of different lines is given by
                $$N_rm lines=78-10(3-1)-2(10-1)=40 .$$
                (b) There are $13choose3=286$ triples of points from $A$. Triples lying on a line do not give rise to a nondegenerate triangle. It follows that the number of nondegenerate triangles in this figure is given by
                $$N_rm triangles=286-103choose3-25choose3=256 .$$






                share|cite|improve this answer













                Drawing a figure we see $10$ lines with $3$ points and $2$ lines with $5$ points. All other lines in the plane contain at most $2$ of the given $13$ points.



                (a) "Formally" there are $13choose2=78$ lines connecting two points in $A$. Lines containing $3$ points of $A$ are thereby counted $3choose2=3$ times, and lines containing $5$ points of $A$ are counted $5choose2=10$ times. It follows that the number of different lines is given by
                $$N_rm lines=78-10(3-1)-2(10-1)=40 .$$
                (b) There are $13choose3=286$ triples of points from $A$. Triples lying on a line do not give rise to a nondegenerate triangle. It follows that the number of nondegenerate triangles in this figure is given by
                $$N_rm triangles=286-103choose3-25choose3=256 .$$







                share|cite|improve this answer













                share|cite|improve this answer



                share|cite|improve this answer











                answered Jul 14 at 19:13









                Christian Blatter

                164k7108306




                164k7108306






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2851754%2fcount-number-of-triangles-given-a-set-of-points%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?