All plus and equal is in the sense of or
Given and and :
The size of Key set of is
As uniform selection , the Left is . Right is 0 because it is impossible
So
Let the mapping from a key to the cipher string with a given ,
Then the probability of a specific cipher text is:
If distribution of is uniform, then
The number may vary dependent on ; when is not in , this number is zero; when is in , the number typically vary with different . If this number happens to be the same for any aka being secrecy, then it follows the distribution of the cipher text is also uniform:
For example of Task 2:
To evaluate , consider all the index of 1 in being and all the index of 0 in being and all the index of 1 in being and
all the index of 0 in being
An example of n=4:
Therefore, the count of satisfy the constraint of the message is :
And in fact, the count number is irrelevant for any :
For any in the range:
Note that the size of the range is . Being uniform, it means each cipher text is probability of
For any not in the range: