Question: A positive integer is fancy if its representation in base 4 only includes 0 s and 1 s . For example: 1 7 is fancy:

A positive integer is fancy if its representation in base 4 only includes 0s and 1s. For example:
17 is fancy: its base-4 representation, 101, only includes 0s and 1s.
18 is not fancy: its base-4 representation, 102, includes a 2.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!