If i have a series of $n$ bits $0$s and $1$s how many different strings differ by 1? For instance $00001$ and $00000$ as well as $1001$ and $1011$ differ by one.I can understand that each string is "close" with $n$ other strings since we can "flip" once all of its digits and produce new strings that have distance $1$ with our original.
If we now consider all possible strings of size n how many strings differ by "1"
By differ i mean their Hamming distance.