3 person Knights and Knaves Problem












2












$begingroup$


The problem goes as such: politicians never tell the truth and non politicians always tell the truth. A stranger meets 3 natives and asks the first of them "Are you a politician?" And he answers. The second native then reports that the first native denied being a politician. The third native says that the first native is a politician. How many of these 3 are politicians?



I'm essentially confused on how to solve this problem without knowing what the 1st native said.










share|cite|improve this question









$endgroup$












  • $begingroup$
    To get oriented in the problem, just go case by case. Can all three be politicians? Can all three be non-politicians? There are only $8$ cases so you can do this exhaustively if you can't think of anything else.
    $endgroup$
    – lulu
    Jan 23 at 21:57










  • $begingroup$
    Side note: you do know what the first one said, or at least you can figure it out. What does he reply if he is politician? What does he reply if he isn't?
    $endgroup$
    – lulu
    Jan 23 at 22:00










  • $begingroup$
    You do know what 1 said. 1 said what everyone says when you ask them "Are you a liar". Does anyone ever say "Yes, I am a liar"? Who'd say that?
    $endgroup$
    – fleablood
    Jan 23 at 22:19
















2












$begingroup$


The problem goes as such: politicians never tell the truth and non politicians always tell the truth. A stranger meets 3 natives and asks the first of them "Are you a politician?" And he answers. The second native then reports that the first native denied being a politician. The third native says that the first native is a politician. How many of these 3 are politicians?



I'm essentially confused on how to solve this problem without knowing what the 1st native said.










share|cite|improve this question









$endgroup$












  • $begingroup$
    To get oriented in the problem, just go case by case. Can all three be politicians? Can all three be non-politicians? There are only $8$ cases so you can do this exhaustively if you can't think of anything else.
    $endgroup$
    – lulu
    Jan 23 at 21:57










  • $begingroup$
    Side note: you do know what the first one said, or at least you can figure it out. What does he reply if he is politician? What does he reply if he isn't?
    $endgroup$
    – lulu
    Jan 23 at 22:00










  • $begingroup$
    You do know what 1 said. 1 said what everyone says when you ask them "Are you a liar". Does anyone ever say "Yes, I am a liar"? Who'd say that?
    $endgroup$
    – fleablood
    Jan 23 at 22:19














2












2








2





$begingroup$


The problem goes as such: politicians never tell the truth and non politicians always tell the truth. A stranger meets 3 natives and asks the first of them "Are you a politician?" And he answers. The second native then reports that the first native denied being a politician. The third native says that the first native is a politician. How many of these 3 are politicians?



I'm essentially confused on how to solve this problem without knowing what the 1st native said.










share|cite|improve this question









$endgroup$




The problem goes as such: politicians never tell the truth and non politicians always tell the truth. A stranger meets 3 natives and asks the first of them "Are you a politician?" And he answers. The second native then reports that the first native denied being a politician. The third native says that the first native is a politician. How many of these 3 are politicians?



I'm essentially confused on how to solve this problem without knowing what the 1st native said.







logic puzzle






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 23 at 21:55









Bria HoltheBria Holthe

111




111












  • $begingroup$
    To get oriented in the problem, just go case by case. Can all three be politicians? Can all three be non-politicians? There are only $8$ cases so you can do this exhaustively if you can't think of anything else.
    $endgroup$
    – lulu
    Jan 23 at 21:57










  • $begingroup$
    Side note: you do know what the first one said, or at least you can figure it out. What does he reply if he is politician? What does he reply if he isn't?
    $endgroup$
    – lulu
    Jan 23 at 22:00










  • $begingroup$
    You do know what 1 said. 1 said what everyone says when you ask them "Are you a liar". Does anyone ever say "Yes, I am a liar"? Who'd say that?
    $endgroup$
    – fleablood
    Jan 23 at 22:19


















  • $begingroup$
    To get oriented in the problem, just go case by case. Can all three be politicians? Can all three be non-politicians? There are only $8$ cases so you can do this exhaustively if you can't think of anything else.
    $endgroup$
    – lulu
    Jan 23 at 21:57










  • $begingroup$
    Side note: you do know what the first one said, or at least you can figure it out. What does he reply if he is politician? What does he reply if he isn't?
    $endgroup$
    – lulu
    Jan 23 at 22:00










  • $begingroup$
    You do know what 1 said. 1 said what everyone says when you ask them "Are you a liar". Does anyone ever say "Yes, I am a liar"? Who'd say that?
    $endgroup$
    – fleablood
    Jan 23 at 22:19
















$begingroup$
To get oriented in the problem, just go case by case. Can all three be politicians? Can all three be non-politicians? There are only $8$ cases so you can do this exhaustively if you can't think of anything else.
$endgroup$
– lulu
Jan 23 at 21:57




$begingroup$
To get oriented in the problem, just go case by case. Can all three be politicians? Can all three be non-politicians? There are only $8$ cases so you can do this exhaustively if you can't think of anything else.
$endgroup$
– lulu
Jan 23 at 21:57












$begingroup$
Side note: you do know what the first one said, or at least you can figure it out. What does he reply if he is politician? What does he reply if he isn't?
$endgroup$
– lulu
Jan 23 at 22:00




$begingroup$
Side note: you do know what the first one said, or at least you can figure it out. What does he reply if he is politician? What does he reply if he isn't?
$endgroup$
– lulu
Jan 23 at 22:00












$begingroup$
You do know what 1 said. 1 said what everyone says when you ask them "Are you a liar". Does anyone ever say "Yes, I am a liar"? Who'd say that?
$endgroup$
– fleablood
Jan 23 at 22:19




$begingroup$
You do know what 1 said. 1 said what everyone says when you ask them "Are you a liar". Does anyone ever say "Yes, I am a liar"? Who'd say that?
$endgroup$
– fleablood
Jan 23 at 22:19










2 Answers
2






active

oldest

votes


















5












$begingroup$

Case 1: No. 1 is a liar.



"Are you a liar?"



No. 1 think. "Hmm, I am but I better lie" and says "No, I'm not". That's a lie.



No. 2 says "No. 1 denied it". That's true.



No. 3 says "No. 1 is a liar". That's true.



You have one liar.



Case 2: No. 1 is not a liar.



"Are you a liar?"



No.1 thinks "No. I'm not and I better tell the truth" and says "No, I'm not". That's true.



No. 2 says "No. 1 denied it". That's true.



No. 3 says "No. 1 is a liar". That's a lie.



You have 1 liar.



So... You have one liar. Either 1 is a liar and 3 is a truther. Or 1 is a truther and 3 is a liar. 2 is definitely a truther.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Could perhaps add some insight into how you came up with this argument/proof? For example, why did you do a case split, and why did you choose do this on whether or not no. 1 is a liar? Perhaps that would help the OP... Thanks!
    $endgroup$
    – Marnix Klooster
    Feb 2 at 18:09










  • $begingroup$
    Insight? I didn't have ANY insight. I just imagined myself in the situation and tried to consider what would happen. I ask a person "Are you a liar" and imagine what s/he would respond... well, that depends on if s/he is a liar so I considered each case.
    $endgroup$
    – fleablood
    Feb 2 at 18:31



















1












$begingroup$

Let's write $;P(x);$ for "$;x;$ is a politician". We are told that, when $;x;$ says $;phi;$, then $;phi;$ is true if and only if $;x;$ is not a politician. That is,
$$
lnot P(x) equiv underline{phi}
$$

(where I've underlined $;x;$'s statement for clarity, this line does not have any formal meaning).



Naming the politicians $;A,B,C;$ in order, the second's statement translates to
$$
tag{1} lnot P(B) equiv underline{(lnot P(A) equiv underline{lnot P(A)})}
$$

Now simplify the right hand side, and the conclusion about $;B;$ is...?



For the third, we get
$$
lnot P(C) equiv underline{P(A)}
$$

What does this tell us about the combination of $;A;$ and $;C;$?



Add up those sub-answers and you get your answer.





The nice thing about this style of proof is that there is no need for any case analysis, which (in my opinion) makes the argument clearer.






share|cite|improve this answer









$endgroup$













    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',
    autoActivateHeartbeat: false,
    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%2f3085130%2f3-person-knights-and-knaves-problem%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5












    $begingroup$

    Case 1: No. 1 is a liar.



    "Are you a liar?"



    No. 1 think. "Hmm, I am but I better lie" and says "No, I'm not". That's a lie.



    No. 2 says "No. 1 denied it". That's true.



    No. 3 says "No. 1 is a liar". That's true.



    You have one liar.



    Case 2: No. 1 is not a liar.



    "Are you a liar?"



    No.1 thinks "No. I'm not and I better tell the truth" and says "No, I'm not". That's true.



    No. 2 says "No. 1 denied it". That's true.



    No. 3 says "No. 1 is a liar". That's a lie.



    You have 1 liar.



    So... You have one liar. Either 1 is a liar and 3 is a truther. Or 1 is a truther and 3 is a liar. 2 is definitely a truther.






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      Could perhaps add some insight into how you came up with this argument/proof? For example, why did you do a case split, and why did you choose do this on whether or not no. 1 is a liar? Perhaps that would help the OP... Thanks!
      $endgroup$
      – Marnix Klooster
      Feb 2 at 18:09










    • $begingroup$
      Insight? I didn't have ANY insight. I just imagined myself in the situation and tried to consider what would happen. I ask a person "Are you a liar" and imagine what s/he would respond... well, that depends on if s/he is a liar so I considered each case.
      $endgroup$
      – fleablood
      Feb 2 at 18:31
















    5












    $begingroup$

    Case 1: No. 1 is a liar.



    "Are you a liar?"



    No. 1 think. "Hmm, I am but I better lie" and says "No, I'm not". That's a lie.



    No. 2 says "No. 1 denied it". That's true.



    No. 3 says "No. 1 is a liar". That's true.



    You have one liar.



    Case 2: No. 1 is not a liar.



    "Are you a liar?"



    No.1 thinks "No. I'm not and I better tell the truth" and says "No, I'm not". That's true.



    No. 2 says "No. 1 denied it". That's true.



    No. 3 says "No. 1 is a liar". That's a lie.



    You have 1 liar.



    So... You have one liar. Either 1 is a liar and 3 is a truther. Or 1 is a truther and 3 is a liar. 2 is definitely a truther.






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      Could perhaps add some insight into how you came up with this argument/proof? For example, why did you do a case split, and why did you choose do this on whether or not no. 1 is a liar? Perhaps that would help the OP... Thanks!
      $endgroup$
      – Marnix Klooster
      Feb 2 at 18:09










    • $begingroup$
      Insight? I didn't have ANY insight. I just imagined myself in the situation and tried to consider what would happen. I ask a person "Are you a liar" and imagine what s/he would respond... well, that depends on if s/he is a liar so I considered each case.
      $endgroup$
      – fleablood
      Feb 2 at 18:31














    5












    5








    5





    $begingroup$

    Case 1: No. 1 is a liar.



    "Are you a liar?"



    No. 1 think. "Hmm, I am but I better lie" and says "No, I'm not". That's a lie.



    No. 2 says "No. 1 denied it". That's true.



    No. 3 says "No. 1 is a liar". That's true.



    You have one liar.



    Case 2: No. 1 is not a liar.



    "Are you a liar?"



    No.1 thinks "No. I'm not and I better tell the truth" and says "No, I'm not". That's true.



    No. 2 says "No. 1 denied it". That's true.



    No. 3 says "No. 1 is a liar". That's a lie.



    You have 1 liar.



    So... You have one liar. Either 1 is a liar and 3 is a truther. Or 1 is a truther and 3 is a liar. 2 is definitely a truther.






    share|cite|improve this answer









    $endgroup$



    Case 1: No. 1 is a liar.



    "Are you a liar?"



    No. 1 think. "Hmm, I am but I better lie" and says "No, I'm not". That's a lie.



    No. 2 says "No. 1 denied it". That's true.



    No. 3 says "No. 1 is a liar". That's true.



    You have one liar.



    Case 2: No. 1 is not a liar.



    "Are you a liar?"



    No.1 thinks "No. I'm not and I better tell the truth" and says "No, I'm not". That's true.



    No. 2 says "No. 1 denied it". That's true.



    No. 3 says "No. 1 is a liar". That's a lie.



    You have 1 liar.



    So... You have one liar. Either 1 is a liar and 3 is a truther. Or 1 is a truther and 3 is a liar. 2 is definitely a truther.







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered Jan 23 at 22:18









    fleabloodfleablood

    72.3k22687




    72.3k22687












    • $begingroup$
      Could perhaps add some insight into how you came up with this argument/proof? For example, why did you do a case split, and why did you choose do this on whether or not no. 1 is a liar? Perhaps that would help the OP... Thanks!
      $endgroup$
      – Marnix Klooster
      Feb 2 at 18:09










    • $begingroup$
      Insight? I didn't have ANY insight. I just imagined myself in the situation and tried to consider what would happen. I ask a person "Are you a liar" and imagine what s/he would respond... well, that depends on if s/he is a liar so I considered each case.
      $endgroup$
      – fleablood
      Feb 2 at 18:31


















    • $begingroup$
      Could perhaps add some insight into how you came up with this argument/proof? For example, why did you do a case split, and why did you choose do this on whether or not no. 1 is a liar? Perhaps that would help the OP... Thanks!
      $endgroup$
      – Marnix Klooster
      Feb 2 at 18:09










    • $begingroup$
      Insight? I didn't have ANY insight. I just imagined myself in the situation and tried to consider what would happen. I ask a person "Are you a liar" and imagine what s/he would respond... well, that depends on if s/he is a liar so I considered each case.
      $endgroup$
      – fleablood
      Feb 2 at 18:31
















    $begingroup$
    Could perhaps add some insight into how you came up with this argument/proof? For example, why did you do a case split, and why did you choose do this on whether or not no. 1 is a liar? Perhaps that would help the OP... Thanks!
    $endgroup$
    – Marnix Klooster
    Feb 2 at 18:09




    $begingroup$
    Could perhaps add some insight into how you came up with this argument/proof? For example, why did you do a case split, and why did you choose do this on whether or not no. 1 is a liar? Perhaps that would help the OP... Thanks!
    $endgroup$
    – Marnix Klooster
    Feb 2 at 18:09












    $begingroup$
    Insight? I didn't have ANY insight. I just imagined myself in the situation and tried to consider what would happen. I ask a person "Are you a liar" and imagine what s/he would respond... well, that depends on if s/he is a liar so I considered each case.
    $endgroup$
    – fleablood
    Feb 2 at 18:31




    $begingroup$
    Insight? I didn't have ANY insight. I just imagined myself in the situation and tried to consider what would happen. I ask a person "Are you a liar" and imagine what s/he would respond... well, that depends on if s/he is a liar so I considered each case.
    $endgroup$
    – fleablood
    Feb 2 at 18:31











    1












    $begingroup$

    Let's write $;P(x);$ for "$;x;$ is a politician". We are told that, when $;x;$ says $;phi;$, then $;phi;$ is true if and only if $;x;$ is not a politician. That is,
    $$
    lnot P(x) equiv underline{phi}
    $$

    (where I've underlined $;x;$'s statement for clarity, this line does not have any formal meaning).



    Naming the politicians $;A,B,C;$ in order, the second's statement translates to
    $$
    tag{1} lnot P(B) equiv underline{(lnot P(A) equiv underline{lnot P(A)})}
    $$

    Now simplify the right hand side, and the conclusion about $;B;$ is...?



    For the third, we get
    $$
    lnot P(C) equiv underline{P(A)}
    $$

    What does this tell us about the combination of $;A;$ and $;C;$?



    Add up those sub-answers and you get your answer.





    The nice thing about this style of proof is that there is no need for any case analysis, which (in my opinion) makes the argument clearer.






    share|cite|improve this answer









    $endgroup$


















      1












      $begingroup$

      Let's write $;P(x);$ for "$;x;$ is a politician". We are told that, when $;x;$ says $;phi;$, then $;phi;$ is true if and only if $;x;$ is not a politician. That is,
      $$
      lnot P(x) equiv underline{phi}
      $$

      (where I've underlined $;x;$'s statement for clarity, this line does not have any formal meaning).



      Naming the politicians $;A,B,C;$ in order, the second's statement translates to
      $$
      tag{1} lnot P(B) equiv underline{(lnot P(A) equiv underline{lnot P(A)})}
      $$

      Now simplify the right hand side, and the conclusion about $;B;$ is...?



      For the third, we get
      $$
      lnot P(C) equiv underline{P(A)}
      $$

      What does this tell us about the combination of $;A;$ and $;C;$?



      Add up those sub-answers and you get your answer.





      The nice thing about this style of proof is that there is no need for any case analysis, which (in my opinion) makes the argument clearer.






      share|cite|improve this answer









      $endgroup$
















        1












        1








        1





        $begingroup$

        Let's write $;P(x);$ for "$;x;$ is a politician". We are told that, when $;x;$ says $;phi;$, then $;phi;$ is true if and only if $;x;$ is not a politician. That is,
        $$
        lnot P(x) equiv underline{phi}
        $$

        (where I've underlined $;x;$'s statement for clarity, this line does not have any formal meaning).



        Naming the politicians $;A,B,C;$ in order, the second's statement translates to
        $$
        tag{1} lnot P(B) equiv underline{(lnot P(A) equiv underline{lnot P(A)})}
        $$

        Now simplify the right hand side, and the conclusion about $;B;$ is...?



        For the third, we get
        $$
        lnot P(C) equiv underline{P(A)}
        $$

        What does this tell us about the combination of $;A;$ and $;C;$?



        Add up those sub-answers and you get your answer.





        The nice thing about this style of proof is that there is no need for any case analysis, which (in my opinion) makes the argument clearer.






        share|cite|improve this answer









        $endgroup$



        Let's write $;P(x);$ for "$;x;$ is a politician". We are told that, when $;x;$ says $;phi;$, then $;phi;$ is true if and only if $;x;$ is not a politician. That is,
        $$
        lnot P(x) equiv underline{phi}
        $$

        (where I've underlined $;x;$'s statement for clarity, this line does not have any formal meaning).



        Naming the politicians $;A,B,C;$ in order, the second's statement translates to
        $$
        tag{1} lnot P(B) equiv underline{(lnot P(A) equiv underline{lnot P(A)})}
        $$

        Now simplify the right hand side, and the conclusion about $;B;$ is...?



        For the third, we get
        $$
        lnot P(C) equiv underline{P(A)}
        $$

        What does this tell us about the combination of $;A;$ and $;C;$?



        Add up those sub-answers and you get your answer.





        The nice thing about this style of proof is that there is no need for any case analysis, which (in my opinion) makes the argument clearer.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jan 23 at 22:33









        Marnix KloosterMarnix Klooster

        4,22122149




        4,22122149






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3085130%2f3-person-knights-and-knaves-problem%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

            MongoDB - Not Authorized To Execute Command

            How to fix TextFormField cause rebuild widget in Flutter

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith