http://www.perlmonks.org?node_id=716686


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

But plug in

into the OP code and it tends towards 5, which was how I was interpreting the expression:

My mistake. Perl evaluates ( R & R | R & R ) & R as ( (R & R) | (R & R) ) & R and that, according to my hypothesis, results in 7 bits set on average.