How to prove that $(A \vee B) + (A \wedge B) \equiv A + B$?
Here $\vee$ and $\wedge$ are bitwise OR and bitwise AND operators, respectively. "$+$" is the arithmetic operator.
Example :- $(5 \vee 6) + (5 \wedge 6) \equiv 5 + 6 = 11$.
Any hints would be appreciated.
Hint: first check that it's true for $A = B = 2^n$ and for $A = 2^n$, $B = 0$.