Dan K.

asked • 03/07/22

How do I solve this problem?

Any positive integer can be written in binary (also called base 2). For example, 37 is 100101 in binary (because 37 = 25 + 22 + 2º), and 45 is 101101 in binary. Let's say that a positive integer is “scattered” if, in its binary expansion, there are never two 1s immediately next to each other. For example, 37 is scattered but 45 is not. How many scattered numbers are there less than 4? Less than 8? Less than 2n?

1 Expert Answer

By:

Raymond B. answered • 07/12/25

Tutor
5 (2)

Math, microeconomics or criminal justice

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.