One integer as a set of bits: set, clear, toggle and test a bit, find the lowest one, count them, and walk every subset.
This interactive visualization needs JavaScript.