1

The number of binary strings of length 100 that contain at most two 1s.

How do we write an expression for it?

rainbow
  • 33

1 Answers1

1

${100\choose 2}+{100\choose 1} + {100\choose 0}$.

You have 100 digits, you choose 2/1/0 of them to be the 1's, the rest being zeroes.

yoyostein
  • 19,608