×
×

# Develop a test for divisibility of a positive integer n by

ISBN: 9780073383095 37

## Solution for problem 9E Chapter 4.SE

Discrete Mathematics and Its Applications | 7th Edition

• Textbook Solutions
• 2901 Step-by-step solutions solved by professors and subject experts
• Get 24/7 help from StudySoup virtual teaching assistants

Discrete Mathematics and Its Applications | 7th Edition

4 5 1 369 Reviews
30
4
Problem 9E

Develop a test for divisibility of a positive integer n by 8 based on the binary expansion of n.

Step-by-Step Solution:

Solution:Step 1:In this problem we have develop a test for divisibility of a positive integer n by 8 based on the binary expansion of n.Step 2: As we know that the binary form of 8 is 1000. So the divisibility rule applies on 1000 in decimal system also applies in binary.As we know the binary formation of any number is anan-1……...a2a1a0Therefore the divisibility test is if the binary form of the number is anan-1……...a2a1a0

Step 3 of 3

#### Related chapters

Unlock Textbook Solution