in reply to Re: Boolean math: Fill in the blanks.
in thread Boolean math: Fill in the blanks.

  1. 21 = (32 - 11) => ( ( R & R ) | R & R ) | R actually gives 23 (which is good :)
  2. 27 = (32 - 5) => ( R | R & R ) | R | R actually gives 29 which I alrady have.
One way to explore this space is to create a Perl script to list the resulting spread for all the expressions with a certain number of operators

I had a go at this, but precedence make is pretty aakward. (Eg, I was unsuccessful!)

I see that 9 is also missing from your list.

I'd missed that, but tit is an easy one: 18 = R & R & R | R so 9 = ( R & R & R | R ) & R. I'll add it in the OP.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."