Define a binary string to be a number which is precisely 11 digits long but consists only of 0s and 1s. 01001000100 is such a string (the string does not necessarily have to start with a 1). Also, let the rightmost digit be denoted and label each digit in the obvious fashion up to the first digit, . For how many binary strings does ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
In effect, we are looking at the numbers from 0 to 2 1 1 − 1 written out in binary. We can now show something similar to the rule for divisibility by 11 in base 10: 2 0 ≡ 1 ( m o d 3 ) . Let us assume that 2 2 k ≡ 1 ( m o d 3 ) then 2 2 k + 1 ≡ 2 × 1 ≡ 2 ( m o d 3 ) and 2 2 ( k + 1 ) ≡ 2 × 2 ≡ 1 ( m o d 3 ) . Since 2 0 ≡ 1 ( m o d 3 ) , we have that 2 2 k ≡ 1 ( m o d 3 ) ∀ k ∈ N and 2 2 k + 1 ≡ − 1 ( m o d 3 ) ∀ k ∈ N . So, for the final condition to hold, we see in fact that the number must be a multiple of 3. So the question now trivially becomes how many multiples of 3 are there less than or equal to 2 1 1 − 1 including 0, to which the answer is 6 8 3