- For binary strings divisible by 2 we need to check if the last char from right is a 0.
- For binary strings divisible by 4= 2 2 ,we need to check if the last char from right is a 00.
- ... ......
- For binary strings divisible by 16= 2 4, we check if the last char from right is a 0000
So, we need 5 states for counting 4 zeros on right.