Red Light Green Light

Logic Level 2

You have an unlimited pile of bars which are slightly arrow-shaped and have four lights in a row. When on, the lights can either be green or red, but currently all the lights are off.

You are then given two bars that are turned on. On one bar the first two lights are green but the last two lights are red, and on the other bar the first and third lights are green but the second and fourth lights are red.

You may then do the following steps in any order and as many times as you like:

  1. If you touch any bar that is on to any bar that is off, the bar that is off will turn on with the same red and green light sequence as the bar that is on (where both bars are pointing in the same direction).
  2. If you shake any bar that is on, all the lights will switch colors (all the green lights will turn red and all the red lights will turn green).
  3. If you touch any two bars that are on to any bar that is off, the bar that is off will turn on, and its light will turn green if both corresponding lights of the other two bars are also green (where both bars are pointing in the same direction), but will otherwise turn red.

Starting with the two given bars and using the above given steps, is it possible to make all 16 possible green and red color combination of the four lights on each bar?

No Yes

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

David Vreken
Nov 19, 2018

The bars are similar to columns of a logical truth table , where the green light is true and the red light is false, where the second step is negation ( p \sim p ) and the third step is conjunction ( p q p \wedge q ). Therefore, we are trying to see if we can obtain all 16 16 possible true and false combinations with just p p , q q , negation ( \sim ), and conjuction ( \wedge ).

Below is a table of all 16 16 possible true and false combinations. Starting with the original two lighted bars, which we will call p p and q q respectively, we have T T F F TTFF and T F T F TFTF . By Step 3 3 , touching these two bars to a bar that is off will give us T F F F TFFF , the logical equivalent to p q p \wedge q .

Cloning these bars by Step 1 1 and negating them by Step 2 2 , we get p \sim p (which is F F T T FFTT ), q \sim q (which is F T F T FTFT ) and ( p q ) \sim (p \wedge q) (which is F T T T FTTT ).

Using different variations of p p , p \sim p , q q , and q \sim q with conjunction, we have p p p \wedge \sim p (which is F F F F FFFF ), p q p \wedge \sim q (which is F T F F FTFF ), p q \sim p \wedge q (which is F F T F FFTF ), and p q \sim p \wedge \sim q (which is F F F T FFFT ), and their negations ( p p ) \sim (p \wedge \sim p) (which is T T T T TTTT ), ( p q ) \sim (p \wedge \sim q) (which is T F T T TFTT ), ( p q ) \sim (\sim p \wedge q) (which is T T F T TTFT ), and ( p q ) \sim (\sim p \wedge \sim q) (which is T T T F TTTF ).

This leaves two left, which can be obtained by ( p q ) ( p q ) \sim (\sim p \wedge q) \wedge \sim (p \wedge \sim q) (which is T F F T TFFT ) and its negation ( ( p q ) ( p q ) ) \sim (\sim (\sim p \wedge q) \wedge \sim (p \wedge \sim q)) (which is F T T F FTTF ).

Therefore, it is possible to make all 16 16 possible green and red color combination of the four lights on each bar.

Nice explanation, David!

I was wondering how you were able to make such cool looking tables. Then I realized they are images! :)

Geoff Pilling - 2 years, 6 months ago

Log in to reply

Thanks! I was going to do the tables in Latex but then I decided it would be easier for me to do them in Microsoft Word and screenshot the images.

David Vreken - 2 years, 6 months ago

Log in to reply

I use google drawings and they had tables to add in my images for my problems @sucheng zhu

I changed my name. - 2 years, 1 month ago

I knew I was able to but I did not need to do all these tables in my head I only took a pencil a red and green crayon and redrew it until I got it :)

Helena Blachut - 2 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...