Is there a quick way for me to tell (quick rejection) whether a binary number when divided by another one has a remainder of 0 or not? I don’t want to have to carry out the entire division. For example, dividing 1001 0110 1011 1110 by 11011. No carry is required.
This is for a networking project.
No, not in general.
Certain special cases can be checked quickly, like if the divisor is a power of two, but there are no shortcuts for the general problem.
Aside: although the shortcuts for special cases necessarily use the encoding of the number, whether or not a division produces a remainder is a property of the numbers involved, not their encodings.