David A.

asked • 02/16/23

Count number of binary strings that satisfy some conditions?

Let b be binary string of length r < n, b doesnt contain any adjacent 0s or 1s. Count number of binary string of length n that if we repeatedly apply these operations 1) 11 =1, 2) 00=0. b doesnt contain adjacent 0s or 1s. For example r=2, n=3, b=01

The strings that result b after those operations are 001, and 011 so the answer is 2


1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.