the newest is v5, not v4. Added the oldest model too
2b) if it is not, output the counter value to result and X value to remainder
2a) if it is, add 1 to the counter, output the counter value to result and 0 to remainder
2) if the numbers are not equal, when the division loop is over, check if the last recorded non-zero remainder (X) is equal to the divisor:
1.2b) if they are not, subtract 1 from the counter
1.1a) if they are, output the counter (which will equal 1)
1.1) while the division is being performed, determine if the numbers are equal:
1) step by step, subtract the divisor from the dividend and count when this operation succeeds
Algorithm for the divider v4: