Prove that for any three distinct positive integers, at least one will be greater than the xor of the other [closed]Gradualness of Polynomial-time RecognizersHow to reverse this bitwise AND-XOR encoding algorithm?Strange behavior with xor, and, or bit operations on integer offsetsProving Gale-Shapley algorithm completes in $O(n^2)$Goldbach Conjecture and the Busy Beaver function?Time constructible function in Hierarchy TheoremHow to prove/make sure that the answer to this question will be m^1/2Mathematics for Computer Science, Problem 2.6. WOPShowing an Inequality Holds TrueProof lower bound of $lceiln/2rceil$ comparisons for finding smallest and second smallest element

Loading the leaflet Map in Lightning Web Component

gerund and noun applications

What exactly term 'companion plants' means?

What is the relationship between relativity and the Doppler effect?

Generic TVP tradeoffs?

Am I eligible for the Eurail Youth pass? I am 27.5 years old

What favor did Moody owe Dumbledore?

Describing a chess game in a novel

What (if any) is the reason to buy in small local stores?

Can a medieval gyroplane be built?

What is the term when voters “dishonestly” choose something that they do not want to choose?

How do hiring committees for research positions view getting "scooped"?

Suggestions on how to spend Shaabath (constructively) alone

How can an organ that provides biological immortality be unable to regenerate?

Optimising a list searching algorithm

What does Jesus mean regarding "Raca," and "you fool?" - is he contrasting them?

Print a physical multiplication table

Can other pieces capture a threatening piece and prevent a checkmate?

Can a wizard cast a spell during their first turn of combat if they initiated combat by releasing a readied spell?

Pronounciation of the combination "st" in spanish accents

World War I as a war of liberals against authoritarians?

Are dual Irish/British citizens bound by the 90/180 day rule when travelling in the EU after Brexit?

Using Past-Perfect interchangeably with the Past Continuous

PTIJ What is the inyan of the Konami code in Uncle Moishy's song?



Prove that for any three distinct positive integers, at least one will be greater than the xor of the other [closed]


Gradualness of Polynomial-time RecognizersHow to reverse this bitwise AND-XOR encoding algorithm?Strange behavior with xor, and, or bit operations on integer offsetsProving Gale-Shapley algorithm completes in $O(n^2)$Goldbach Conjecture and the Busy Beaver function?Time constructible function in Hierarchy TheoremHow to prove/make sure that the answer to this question will be m^1/2Mathematics for Computer Science, Problem 2.6. WOPShowing an Inequality Holds TrueProof lower bound of $lceiln/2rceil$ comparisons for finding smallest and second smallest element













0












$begingroup$


That is, prove that for distinct positive integers $x$, $y$, and $z$, at least one of these integers will be greater than the bitwise XOR of the other two integers.



The only "progress" I managed to make was assuming for the sake of contradiction that we could have $x<y$ XOR $z$ and so on. Then, this would imply $x+y+z<x$ XOR $y+y$ XOR $z+z$ XOR $x$. I tried proving this was impossible but later found a counterexample :(










share|cite|improve this question









New contributor




J. Tyme is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$



closed as off-topic by John Omielan, Eevee Trainer, Lee David Chung Lin, Shailesh, hardmath Mar 13 at 0:48


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – John Omielan, Eevee Trainer, Lee David Chung Lin, Shailesh, hardmath
If this question can be reworded to fit the rules in the help center, please edit the question.











  • 2




    $begingroup$
    Welcome to MSE. Please give some context, in particular, tell us what you've tried so far, including anything in particular you had difficulty with. Also, letting us know where this problem comes from would be helpful. Thanks.
    $endgroup$
    – John Omielan
    Mar 12 at 20:47






  • 1




    $begingroup$
    The "bare problem statement" is disfavored, not only because it typically conveys an imperative, but also because it fails to disclose what you find interesting or difficult about the problem. Showing that you digested the problem's meaning before posting will often encourage Readers to provide the best exposition they can.
    $endgroup$
    – hardmath
    Mar 13 at 0:47
















0












$begingroup$


That is, prove that for distinct positive integers $x$, $y$, and $z$, at least one of these integers will be greater than the bitwise XOR of the other two integers.



The only "progress" I managed to make was assuming for the sake of contradiction that we could have $x<y$ XOR $z$ and so on. Then, this would imply $x+y+z<x$ XOR $y+y$ XOR $z+z$ XOR $x$. I tried proving this was impossible but later found a counterexample :(










share|cite|improve this question









New contributor




J. Tyme is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$



closed as off-topic by John Omielan, Eevee Trainer, Lee David Chung Lin, Shailesh, hardmath Mar 13 at 0:48


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – John Omielan, Eevee Trainer, Lee David Chung Lin, Shailesh, hardmath
If this question can be reworded to fit the rules in the help center, please edit the question.











  • 2




    $begingroup$
    Welcome to MSE. Please give some context, in particular, tell us what you've tried so far, including anything in particular you had difficulty with. Also, letting us know where this problem comes from would be helpful. Thanks.
    $endgroup$
    – John Omielan
    Mar 12 at 20:47






  • 1




    $begingroup$
    The "bare problem statement" is disfavored, not only because it typically conveys an imperative, but also because it fails to disclose what you find interesting or difficult about the problem. Showing that you digested the problem's meaning before posting will often encourage Readers to provide the best exposition they can.
    $endgroup$
    – hardmath
    Mar 13 at 0:47














0












0








0





$begingroup$


That is, prove that for distinct positive integers $x$, $y$, and $z$, at least one of these integers will be greater than the bitwise XOR of the other two integers.



The only "progress" I managed to make was assuming for the sake of contradiction that we could have $x<y$ XOR $z$ and so on. Then, this would imply $x+y+z<x$ XOR $y+y$ XOR $z+z$ XOR $x$. I tried proving this was impossible but later found a counterexample :(










share|cite|improve this question









New contributor




J. Tyme is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$




That is, prove that for distinct positive integers $x$, $y$, and $z$, at least one of these integers will be greater than the bitwise XOR of the other two integers.



The only "progress" I managed to make was assuming for the sake of contradiction that we could have $x<y$ XOR $z$ and so on. Then, this would imply $x+y+z<x$ XOR $y+y$ XOR $z+z$ XOR $x$. I tried proving this was impossible but later found a counterexample :(







computer-science bit-strings






share|cite|improve this question









New contributor




J. Tyme is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|cite|improve this question









New contributor




J. Tyme is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|cite|improve this question




share|cite|improve this question








edited Mar 13 at 1:18







J. Tyme













New contributor




J. Tyme is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Mar 12 at 20:46









J. TymeJ. Tyme

11




11




New contributor




J. Tyme is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





J. Tyme is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






J. Tyme is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




closed as off-topic by John Omielan, Eevee Trainer, Lee David Chung Lin, Shailesh, hardmath Mar 13 at 0:48


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – John Omielan, Eevee Trainer, Lee David Chung Lin, Shailesh, hardmath
If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by John Omielan, Eevee Trainer, Lee David Chung Lin, Shailesh, hardmath Mar 13 at 0:48


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – John Omielan, Eevee Trainer, Lee David Chung Lin, Shailesh, hardmath
If this question can be reworded to fit the rules in the help center, please edit the question.







  • 2




    $begingroup$
    Welcome to MSE. Please give some context, in particular, tell us what you've tried so far, including anything in particular you had difficulty with. Also, letting us know where this problem comes from would be helpful. Thanks.
    $endgroup$
    – John Omielan
    Mar 12 at 20:47






  • 1




    $begingroup$
    The "bare problem statement" is disfavored, not only because it typically conveys an imperative, but also because it fails to disclose what you find interesting or difficult about the problem. Showing that you digested the problem's meaning before posting will often encourage Readers to provide the best exposition they can.
    $endgroup$
    – hardmath
    Mar 13 at 0:47













  • 2




    $begingroup$
    Welcome to MSE. Please give some context, in particular, tell us what you've tried so far, including anything in particular you had difficulty with. Also, letting us know where this problem comes from would be helpful. Thanks.
    $endgroup$
    – John Omielan
    Mar 12 at 20:47






  • 1




    $begingroup$
    The "bare problem statement" is disfavored, not only because it typically conveys an imperative, but also because it fails to disclose what you find interesting or difficult about the problem. Showing that you digested the problem's meaning before posting will often encourage Readers to provide the best exposition they can.
    $endgroup$
    – hardmath
    Mar 13 at 0:47








2




2




$begingroup$
Welcome to MSE. Please give some context, in particular, tell us what you've tried so far, including anything in particular you had difficulty with. Also, letting us know where this problem comes from would be helpful. Thanks.
$endgroup$
– John Omielan
Mar 12 at 20:47




$begingroup$
Welcome to MSE. Please give some context, in particular, tell us what you've tried so far, including anything in particular you had difficulty with. Also, letting us know where this problem comes from would be helpful. Thanks.
$endgroup$
– John Omielan
Mar 12 at 20:47




1




1




$begingroup$
The "bare problem statement" is disfavored, not only because it typically conveys an imperative, but also because it fails to disclose what you find interesting or difficult about the problem. Showing that you digested the problem's meaning before posting will often encourage Readers to provide the best exposition they can.
$endgroup$
– hardmath
Mar 13 at 0:47





$begingroup$
The "bare problem statement" is disfavored, not only because it typically conveys an imperative, but also because it fails to disclose what you find interesting or difficult about the problem. Showing that you digested the problem's meaning before posting will often encourage Readers to provide the best exposition they can.
$endgroup$
– hardmath
Mar 13 at 0:47











1 Answer
1






active

oldest

votes


















1












$begingroup$

So let's write $x$, $y$ and $z$ as binary numbers where the first digit is a $1$ (note that the numbers are strictly positive). Some hints:



  • If one number has more digits than the other two, what can we do? Can XOR ever return a number with more digits than its two inputs?

  • How can we extend this to the case where two numbers have the same number of digits as each other, and this is more than the number of digits of the third number?

  • If each number has the same number of digits, they all start with a $1$. What happens if you take the bitwise XOR of any two of the numbers?





share|cite|improve this answer









$endgroup$



















    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1












    $begingroup$

    So let's write $x$, $y$ and $z$ as binary numbers where the first digit is a $1$ (note that the numbers are strictly positive). Some hints:



    • If one number has more digits than the other two, what can we do? Can XOR ever return a number with more digits than its two inputs?

    • How can we extend this to the case where two numbers have the same number of digits as each other, and this is more than the number of digits of the third number?

    • If each number has the same number of digits, they all start with a $1$. What happens if you take the bitwise XOR of any two of the numbers?





    share|cite|improve this answer









    $endgroup$

















      1












      $begingroup$

      So let's write $x$, $y$ and $z$ as binary numbers where the first digit is a $1$ (note that the numbers are strictly positive). Some hints:



      • If one number has more digits than the other two, what can we do? Can XOR ever return a number with more digits than its two inputs?

      • How can we extend this to the case where two numbers have the same number of digits as each other, and this is more than the number of digits of the third number?

      • If each number has the same number of digits, they all start with a $1$. What happens if you take the bitwise XOR of any two of the numbers?





      share|cite|improve this answer









      $endgroup$















        1












        1








        1





        $begingroup$

        So let's write $x$, $y$ and $z$ as binary numbers where the first digit is a $1$ (note that the numbers are strictly positive). Some hints:



        • If one number has more digits than the other two, what can we do? Can XOR ever return a number with more digits than its two inputs?

        • How can we extend this to the case where two numbers have the same number of digits as each other, and this is more than the number of digits of the third number?

        • If each number has the same number of digits, they all start with a $1$. What happens if you take the bitwise XOR of any two of the numbers?





        share|cite|improve this answer









        $endgroup$



        So let's write $x$, $y$ and $z$ as binary numbers where the first digit is a $1$ (note that the numbers are strictly positive). Some hints:



        • If one number has more digits than the other two, what can we do? Can XOR ever return a number with more digits than its two inputs?

        • How can we extend this to the case where two numbers have the same number of digits as each other, and this is more than the number of digits of the third number?

        • If each number has the same number of digits, they all start with a $1$. What happens if you take the bitwise XOR of any two of the numbers?






        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Mar 12 at 21:14









        AdamAdam

        748113




        748113













            Popular posts from this blog

            Lowndes Grove History Architecture References Navigation menu32°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661132°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661178002500"National Register Information System"Historic houses of South Carolina"Lowndes Grove""+32° 48' 6.00", −79° 57' 58.00""Lowndes Grove, Charleston County (260 St. Margaret St., Charleston)""Lowndes Grove"The Charleston ExpositionIt Happened in South Carolina"Lowndes Grove (House), Saint Margaret Street & Sixth Avenue, Charleston, Charleston County, SC(Photographs)"Plantations of the Carolina Low Countrye

            random experiment with two different functions on unit interval Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Random variable and probability space notionsRandom Walk with EdgesFinding functions where the increase over a random interval is Poisson distributedNumber of days until dayCan an observed event in fact be of zero probability?Unit random processmodels of coins and uniform distributionHow to get the number of successes given $n$ trials , probability $P$ and a random variable $X$Absorbing Markov chain in a computer. Is “almost every” turned into always convergence in computer executions?Stopped random walk is not uniformly integrable

            How should I support this large drywall patch? Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How do I cover large gaps in drywall?How do I keep drywall around a patch from crumbling?Can I glue a second layer of drywall?How to patch long strip on drywall?Large drywall patch: how to avoid bulging seams?Drywall Mesh Patch vs. Bulge? To remove or not to remove?How to fix this drywall job?Prep drywall before backsplashWhat's the best way to fix this horrible drywall patch job?Drywall patching using 3M Patch Plus Primer