Consider the binary expansion of n - 1, n, and n + 1.