Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You probably know the trick that a number is a multiple of 9 if and only if the sum of its decimal digits is a
You probably know the trick that a number is a multiple of 9 if and only if the sum of its decimal digits is a multiple of 9. Here is a similar trick for multiples of 3 in binary Prove that a number is a multiple of 3 if and only if writing that number backwards in binary is also a multiple of 3. Example: 0011 bin-3dels a multiple of 3, and so is 1100bin-12dec. However, 100 101bin- 37dec is not a multiple of 3, and neither is 101001 bin-41d Hint: First transform this to a statement about regular languages over alphabet {0, 1)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started