Problem statement:
In a binary code, each code word has 6 bits, each of which is 0 or 1. What is the probability that a random code word (a) has three 0’s and three 1’s?
Approach: number of distinct nonnegative integer solutions is given by ${n+k-1 \choose {k-1}}$ which gives us ${8 \choose 5}$ when n=3, so the probability is $\frac{{8 \choose 5}}{2^6}$
This is probably wrong since a linear equation can have coefficients > 1 as well.
I am probably overcomplicating this problem. I found it difficult to determine what to choose and what to choose out of, when trying to calculate the number of combinations of three 1's and three 0's.