To set bit (make it 1) in number , you OR with . This guarantees bit becomes 1, while leaving all other bits unchanged.
The OR operation turns bits on. Since and , ORing with a bit that's 1 forces that position to 1 regardless of what was there before.
Example: Set bit 1 in . Compute . Bit 1 is now on.